I’m using CharacterSet.urlQueryAllowed to add percent-encoding to a String.
Some characters are not encoded the way I expected (i.e. & and ? are not changed). That being said, I had the idea to build a custom CharacterSet, ideally based on an existing one.
What’s the best approach to do so?
