M
Michael Goerz
Hi,
I am writing unicode stings into a special text file that requires to
have non-ascii characters as as octal-escaped UTF-8 codes.
For example, the letter "Ã" (latin capital I with acute, code point 205)
would come out as "\303\215".
I will also have to read back from the file later on and convert the
escaped characters back into a unicode string.
Does anyone have any suggestions on how to go from "Ã" to "\303\215" and
vice versa?
I know I can get the code point by doingbut there doesn't seem to be any similar method for getting the octal
escaped version.
Thanks,
Michael
I am writing unicode stings into a special text file that requires to
have non-ascii characters as as octal-escaped UTF-8 codes.
For example, the letter "Ã" (latin capital I with acute, code point 205)
would come out as "\303\215".
I will also have to read back from the file later on and convert the
escaped characters back into a unicode string.
Does anyone have any suggestions on how to go from "Ã" to "\303\215" and
vice versa?
I know I can get the code point by doingbut there doesn't seem to be any similar method for getting the octal
escaped version.
Thanks,
Michael