Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 Eclipse 项目中,strings.xml 不再显示 xml 文件中的日文字符串,它只显示一系列垂直矩形,
我的其他strings.xml,如德语、西班牙语、法语等都显示良好..
知道可能出了什么问题吗?似乎文本编辑器没有正确解释编码?
当我将字符串从那里复制到这里时,例如在stackoverflow编辑器中,它显示字符串很好..
<string name="dialog_message">"発信者名"</string>
但在 eclipse 的 xml 编辑器中不显示。
这意味着 Eclipse 编辑器使用的字体不能显示日文字符。您的 Eclipse 编辑器设置为使用哪种字体?确保它使用的是支持 Unicode 的字体。
在 Eclipse 中,菜单Edit和Set Encoding.
Edit
Set Encoding
在那里您应该找到适合您要求的编码格式。
问候