gpt4 book ai didi

eclipse - 字符常量 ⣠无效(从 Netbeans 导入到 Eclipse IDE 后)

转载 作者:行者123 更新时间:2023-12-02 13:52:57 24 4
gpt4 key购买 nike

我刚刚将代码文件从 Netbeans 项目导入到 Eclipse 项目中。 Eclipse 不喜欢导入以下代码行:

if( value == '£' ) {

在 Netbeans 中,这显示为:

    if( value == '£' ) { 

我认为这可能取决于编码。 Netbeans 在项目属性中将编码设置为 UTF-8。 Eclipse 中是否有等效的设置来解决这个问题?

最佳答案

查看 ide 和文件的编码设置是否匹配。我猜您创建了拉丁编码文件并在 eclipse 中将其打开为 utf-8。或者转换使用了错误的字符集。

在 Eclipse 首选项中,转到“编辑”和“文件编码”。

关于eclipse - 字符常量 ⣠无效(从 Netbeans 导入到 Eclipse IDE 后),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6735816/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com