UTF8 files and Replace filters
Posted: Fri Sep 16, 2005 2:47 am
I am trying to replace certain entities with their characters in UTF8 text e.g
& #171; -> «
When I use a simple replace filter on my files, the character TextPipe puts is the iso-8859-1 version - I know this becuse if I open the file as UTF8, the character inserted is an invisible control character, but if I change the viewer to look at the file as Western European, the correct character appears.
Is there something I need to do to tell TextPipe that the files it is replacing are UTF8. Or do I need to use Unicode escape sequences. In this case I tried \U+00AB but it didn't work.
Thanks,
Keith
& #171; -> «
When I use a simple replace filter on my files, the character TextPipe puts is the iso-8859-1 version - I know this becuse if I open the file as UTF8, the character inserted is an invisible control character, but if I change the viewer to look at the file as Western European, the correct character appears.
Is there something I need to do to tell TextPipe that the files it is replacing are UTF8. Or do I need to use Unicode escape sequences. In this case I tried \U+00AB but it didn't work.
Thanks,
Keith