I've had several problems (in the past and just recently) working with 
multibyte strings in text files. Sadly there are a lot of editors out there 
still that don't properly save files as UTF-8. I forget which one, but in my 
recent batch of OS X IDEs there was one that even tried to save a file I was 
using to test one of our MultiByte functions with properly, but still managed 
to butcher it. The display was fine... until I reopened the file and it loaded 
the butchered copy from disk.

So I've been looking at our PHPUnit tests and wanted to improve and expand the 
one for the MultiByte class. We've got several test strings saved in the file 
and I was curious what kind of "best practice" there might be for these. Should 
we be saving them as-is in the file and risking editor corruption (even if it's 
unlikely), or should we be escaping them into some more portable format? Maybe 
numeric entities?

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to