开发者

playframework1.2 has some Chinese garbled

开发者 https://www.devze.com 2023-02-24 22:34 出处:网络
wheniuse the&{\'unit\'}, andthe\"unit=元\" is in开发者_C百科the file ofmessages.zh_CN ,but i get thegarbled. Make sure that your messages.zh_CN file has utf-8 encoding. I had the very same problem

when i use the &{'unit'} , and the "unit=元" is in 开发者_C百科the file of messages.zh_CN ,but i get the garbled.


Make sure that your messages.zh_CN file has utf-8 encoding. I had the very same problem with Russian messages becuase the file had wrong encoding. In intellij IDEA, for example, you can fix it from menu -> setting -> file encodings.


As Tim pointed out, this is a known issue, related to http://play.lighthouseapp.com/projects/57987-play-framework/tickets/710-messages-files-read-broken-when-they-contain-certain-character - this should be fixed soon in a 1.2.1 release.


i had the same problem with russian language, but I'm pretty sure, that my files were utf-8 encoded (in vim I use set fenc, set enc) it says utf-8 I don't use some messages though (

0

精彩评论

暂无评论...
验证码 换一张
取 消