0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cocos2D-X - UnicodeEncodeError: 'cp950' codec can't encode character u'\u7f16'

Last updated at Posted at 2019-03-08

2019-07-18 Updated
Version : 3.17.2

Build Error

Traceback (most recent call last):
  File "D:\Downloads\cocos2d-js\tools\cocos2d-console\bin\/cocos.py", line 1081, in <module>
    run_plugin(command, argv, plugins)
  File "D:\Downloads\cocos2d-js\tools\cocos2d-console\bin\/cocos.py", line 970, in run_plugin
    plugin.run(argv, dependencies_objects)
  File "D:\Downloads\cocos2d-js\tools\cocos2d-console\plugins\plugin_compile\project_compile.py", line 1508, in run
    self.parse_args(argv)
  File "D:\Downloads\cocos2d-js\tools\cocos2d-console\bin\cocos.py", line 615, in parse_args
    self._add_custom_options(parser)
  File "D:\Downloads\cocos2d-js\tools\cocos2d-console\plugins\plugin_compile\project_compile.py", line 74, in _add_custom_options
    help=MultiLanguage.get_string('COMPILE_ARG_BUILD_TYPE'))
  File "D:\Downloads\cocos2d-js\tools\cocos2d-console\bin\MultiLanguage.py", line 52, in get_string
    fmt = cls.get_instance().get_current_string(key)
  File "D:\Downloads\cocos2d-js\tools\cocos2d-console\bin\MultiLanguage.py", line 158, in get_current_string
    ret = ret.encode(self.encoding)
UnicodeEncodeError: 'cp950' codec can't encode character u'\u7f16' in position 84: illegal multibyte sequence

Solution

Find the file string.json in the subfolder tools\cocos2d-console\bin whithin cocos2d-x-3.17.2.zip unzip folder and delete "zh" and "zh-tr" json part.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?