Sim City 4 Devotion Forums

Sim City 4 Devotion Tools => Tools - General Discussion => SC4PIM (PIM-X/X-Tool) => Topic started by: MAS71 on April 23, 2010, 03:05:25 AM

Title: Language file(Current.lang) and Error
Post by: MAS71 on April 23, 2010, 03:05:25 AM
Hello Wouanagaine and All  :)

I tying to make Language-file(Current.lang) with Japanese now.
We(JPN) using an encoding "Shift_jis" , "EUC-JP" and "UTF-8" usually.
I'd try to language-file with "UTF-8" and it was succeeded in Beta version of PIM-X.  :thumbsup: (Ver.62a and ver.RC2)
(I think you remember that sent PM with this file to you. ;) )

However,
On latest version of PIM-X can not work with same encoding.  &mmm

This is message of error when after displayed a SPLASH-image....and stop program.
Quote
Traceback (most recent call last):
  File "SC4PIMApp.pyo", line 3367, in OnClose
  File "SC4PIMApp.pyo", line 3370, in ShowMain
  File "SC4PIMApp.pyo", line 2797, in __init__
  File "SC4PIMApp.pyo", line 3080, in PreLoadDatas
  File "SC4PIMApp.pyo", line 2623, in __init__
  File "wx\_controls.pyo", line 1136, in __init__
UnicodeDecodeError: 'cp932' codec can't decode bytes in position 4-5: illegal multibyte sequence


and next step, I tryed it with an encoding with "Shift_jis", it could worked a right. :thumbsup:
but when "Right-click of Mouse" to display a menu-window, error message again and stop a program.
Quote
Traceback (most recent call last):
  File "SC4PIMApp.pyo", line 1193, in OnRightClick
UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 3:
ordinal not in range(128)

B.t.w
I'd try it with encoding "EUC-JP", all text changed starange japanese in PIM-X.  :P


Please give me some advice if it possible to soleved to easy. :)

Thank you for reading. ;)
-Mas'71