[英]Russian text is not working in Android game when ported from iOS using Apportable SDK
I have successfully ported our game to Android from iOS using Apportable starter SDK. 我已使用Apportable入门版SDK成功将游戏从iOS移植到Android。
I have come across a issue in which the device is decoding Russian text of the game , i have included screen shots and where i have given such Russian texts in xcode.As you see from the i have typed the word "Test" in English which is displayed properly and whereas the Russian text is displayed in some form of code. 我遇到了一个问题,其中该设备正在解码游戏的俄语文本,其中包括屏幕截图,并且在xcode中给出了此类俄语文本。从i中可以看到,我在英语中键入了“ Test”一词,正确显示,而俄语文本以某种形式的代码显示。
NSArray *objects = [NSArray arrayWithObjects:@"\\n Test Разъезжая по сказочным землям и устраивая веселые дискотеки, я добрался до Пушляндии. Я много слышал о веселых и дружных жителях этой страны - Пушистиках. Узнав о моем появлении, они шумной толпой прибежали на мою вечеринку..."];
Stack overflow is not allowing me to add screenshots so i am adding links.The first screenshot shows the way i want the text to display in android adb second screenshot shows the current way its displayed. 堆栈溢出不允许我添加屏幕截图,所以我要添加链接。第一个屏幕截图显示了我希望文本在android adb中显示的方式,第二个屏幕截图显示了其当前显示方式。
I will provide more detailed description or code if required. 如果需要,我将提供更详细的描述或代码。
Screenshot iOS: http://imgur.com/IX1ALye iOS屏幕截图: http : //imgur.com/IX1ALye
Screenshot Android: http://imgur.com/oJmAoMO
Android屏幕截图: http : //imgur.com/oJmAoMO
Maybe i will be captain obviously it`s looking like file encoding error after port. 也许我将成为船长,显然它看起来像移植后的文件编码错误。 Russian texts sometimes ussing cp-1251 encoding not utf.
俄语文本有时会使用cp-1251编码而不是utf。 I hope i will help you to find solution.
希望我能帮助您找到解决方案。
Ps Sorry i dont have enought reputation to add comment so i post it like answer. 抱歉,我没有足够的声誉来添加评论,所以我将其发布为答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.