d0c-s4vage / pfp

pfp - Python Format Parser - a python-based 010 Editor template interpreter
MIT License
196 stars 37 forks source link

Charsets are unimplemented #39

Open vit9696 opened 8 years ago

vit9696 commented 8 years ago

The actual line I had was like that: StringToWString(value,CHARSET_JAPANESE), and CHARSET_JAPANESE was reported as undefined.

It should also be noted that the following implicit cast to utf-8 is valid:

local string out;
SPrintf(out,"%s",StringToWString(value,CHARSET_JAPANESE));
d0c-s4vage commented 4 years ago

For reference:

CHARSET_ASCII
CHARSET_ANSI
CHARSET_OEM
CHARSET_EBCDIC
CHARSET_UNICODE
CHARSET_MAC
CHARSET_ARABIC
CHARSET_BALTIC
CHARSET_CHINESE_S
CHARSET_CHINESE_T
CHARSET_CYRILLIC
CHARSET_EASTEUROPE
CHARSET_GREEK
CHARSET_HEBREW
CHARSET_JAPANESE
CHARSET_KOREAN_J
CHARSET_KOREAN_W
CHARSET_THAI
CHARSET_TURKISH
CHARSET_VIETNAMESE
CHARSET_UTF8
CHARSET_ARABIC_ISO
CHARSET_BALTIC_ISO
CHARSET_CYRILLIC_KOI8R
CHARSET_CYRILLIC_KOI8U
CHARSET_CYRILLIC_ISO
CHARSET_EASTEUROPE_ISO
CHARSET_GREEK_ISO
CHARSET_HEBREW_ISO
CHARSET_JAPANESE_EUCJP
CHARSET_TURKISH_ISO