简体   繁体   English

这些字符代表什么?

[英]What do these characters stand for?

i just imported some code from a open source Minecraft client and in the.net.minecraft.client.Minecraft.java class are some problems, it's about the some characters.我刚刚从开源 Minecraft 客户端导入了一些代码,在 .net.minecraft.client.Minecraft.java class 中有一些问题,它与一些角色有关。 Eclipse shows me the error: 'Invalid character constant'. Eclipse 向我显示错误:“无效字符常量”。 Does anyone know what they stand for?有谁知道他们代表什么? :) :)

playerSnooper.addStatToSnooper("gl_caps[gl_max_vertex_uniforms]", Integer.valueOf(GL11.glGetInteger('è­-Š')));
    GL11.glGetError();
    playerSnooper.addStatToSnooper("gl_caps[gl_max_fragment_uniforms]", Integer.valueOf(GL11.glGetInteger('è-­‰')));
    GL11.glGetError();
    playerSnooper.addStatToSnooper("gl_caps[gl_max_vertex_attribs]", Integer.valueOf(GL11.glGetInteger('è¡©')));
    GL11.glGetError();
    playerSnooper.addStatToSnooper("gl_caps[gl_max_vertex_texture_image_units]",
            Integer.valueOf(GL11.glGetInteger('è-­Œ')));
    GL11.glGetError();
    playerSnooper.addStatToSnooper("gl_caps[gl_max_texture_image_units]", Integer.valueOf(GL11.glGetInteger('衲')));
    GL11.glGetError();
    playerSnooper.addStatToSnooper("gl_caps[gl_max_texture_image_units]", Integer.valueOf(GL11.glGetInteger('裿')));
    GL11.glGetError();
    playerSnooper.addStatToSnooper("gl_max_texture_size", Integer.valueOf(getGLMaximumTextureSize()));
}

public static int getGLMaximumTextureSize() {
    for (int i = 16384; i > 0; i >>= 1) {
        GL11.glTexImage2D('�', 0, 6408, i, i, 0, 6408, 5121, (ByteBuffer) null);
        int j = GL11.glGetTexLevelParameteri('�', 0, 4096);
        if (j != 0) {
            return i;
        }
    }

    return -1;
}

I'm guessing you are not using the proper encoding in Eclipse我猜你没有在 Eclipse 中使用正确的编码

Windows-> Preferences -> General -> Workspace Windows->首选项->常规->工作区

try changing the text file encoding.尝试更改文本文件编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM