mikand_61525
Nov 22, 2008Nimbostratus
URI::decode and unicoded characters
When using URI::decode to filter uri-requests it seems like unicode characters such as C3%B6 (which is letter "ä") gets decoded into the two characters "├Â" instead of being kept as is.
Is there a way to after an uri has been decoded to encode it again but only the unicode stuff?
Because I assume I could solve this by using a string map to manually convert "├Â" into C3%B6 but there might exist other unicode characters so it would be nice if there existed some kind of URI::encode_unicode, perhaps there already is?
Maybe somebody on this forum already stumbled into this problem previously and has a nifty solution? :-)