[xwiki-dev] [Opinions needed] Encoding of xwiki source files

Artem Melentyev melenartem at ya.ru
Sat Mar 10 20:12:29 CET 2007


Agree.
+1 to solution 2 (\uXXXX)

My system LANG=ru_RU.UTF-8. But I think to see in the code '\u????' is 
better than something unreadable character because missing fonts.

Sergiu Dumitriu wrote:
> Depending on a particular encoding is bad because:
> - The IDE has to be configured to use the encoding
> - Building from command line needs extra parameters
> - Opening a file using a standalone viewer, and not an IDE, will display 
> the file using the system encoding, and we can't tell the user to change 
> this
> - There are some people still using a shell, and something like midnight 
> commander to open files, and the support for non-ascii chars is not so 
> good in text shells.
> 
> So the best solution would be not to have any special chars in the 
> source files, so that any encoding works fine. However, there are some 
> modules, like tests and translation files, where special characters are 
> needed. And the only way to correctly display these chars in any 
> environment is to use \u sequences. Still, we should make a full switch 
> to utf8, including the source, so we should switch all the files to utf8.

-- 
   Artem Melentyev, UralSU




More information about the devs mailing list