I recently starting using the plugin to reformat/pretty-print JSON.  It works
great, except that I find that it is messing with some unicode characters.  For
example, if I have a ÄŤ (\u012b) it comes out a regular i (\u0069) afterwards.

I have been able to workaround this by changing the script to insert the hex
numbers (e.g. "\u012b") in place of the original character whenever the
character is > 0xFF, or outside the standard ASCII range.  However, I'm puzzled
as to why it isn't being preserved correctly, when all the script is doing is
reading it in and writing it out.

It is obviously reading the character correctly, or my workaround would fail. 
So the problem has to be when it writes the character back out.

PSPad is displaying the code page as UTF-8 on the status line for the file I am
reformatting.

Thanks for any ideas,
Cary

-- 
<http://forum.pspad.com/read.php?2,62111,62111>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem