>the problem is that I have both ISO-8859-1(5) and UTF-8 files. Actually >I think that in case of XML-Files IntelliJ should read the encoding from >the XML-Header and therefore handle different encodings gracefully. In >my opinion this rather seems to be a bug. Hope they get this fixed for >the final release.
I see. I understand the problem because I also have the same problem. I think it's quite easy to fix at least for XML files. For classes or JSP, it's a more complicated problem. In any case, for your XML files, be very careful, and try converting all files in one and only encoding. Then, IntelliJ should gracefully handle the encoding. But as I've said, avoid opening a file with the wrong encoding. As soon as you'll save it, you'll loose all the characters that are illegal in the current encoding. For instance, you'll loose the accents for French, and the Russian letters, etc... Everything replaced with squares! On another thread, I'm talking with Maxim Shafirov about the problems related to UTF and non-UTF files. It's very easy to guess whether a file is in UTF-x or not. But when it's not in UTF, it's rather difficult to guess what the 8-bit encoding is. It's not possible to guess the difference between ISO-8859-1 and ISO-8859-5, etc... A workaround would be to read the file, if it's UTF, the file will be read with UTF, otherwise, it will be read with the default encoding of your system. That's the best stuff we could too currently. I hope this will be implemented soon, because currently some of my files our UTF-8 encoded, and others in ISO latin 1 and I encounter the same problem as you. Guillaume _______________________________________________ Eap-bugs mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-bugs
