字符编码 CP037
正在将应用程序从 java 转换为 Objective-C,并遇到了有关字符编码的问题。
在java代码中,我试图转换的语句是:
byte[] instructions = input.getBytes("CP037");
我希望在objective-c中执行以下操作:
const char *instructions = [input CP037];
但是“CP037”不作为编码存在,有谁知道如何克服?
Am converting an application from java to objective-c and have run into an issue around character encoding.
In the java code the statement am trying to convert is:
byte[] instructions = input.getBytes("CP037");
I was hoping to do the following in objective-c:
const char *instructions = [input CP037];
However "CP037" doesn't exist as an encoding, does anyone know how to overcome?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最终到达那里:
Got there in the end: