"Maxim Shafirov" <[EMAIL PROTECTED]> a �crit dans le message news: ah64qt$jj7$[EMAIL PROTECTED] > Regarding using XML's header encoding I wonder what to do if someone types > other encoding in editor there? >
Hello Maxim, You mean if the guy changes the encoding whereas the file was opened with another encoding ? So let's think about that. (If that's what you meant, otherwise, excuse me!) There's an XML file with a specified encoding such as ISO-8859-1 (as for certain West European countries including mine). <?xml version='1.0' encoding='ISO-8859-1'?> The file is opened using this encoding. The guy decides to change manually the encoding specified in the header to <?xml version='1.0' encoding='UTF-8'?> Althought everything he types is still with the default encoding (ISO latin 1), when he will save, then the file will have to be converted into the new choosen encoding, i.e. UTF-8. It's very easy to convert from one encoding to another, it just takes a few lines of code. Finally, when he reopens it, it will be using the UTF-8 encoding. I think it makes sens. Do you see any issue there ? Guillaume _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-features
