-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception occur if map has non-ASCII character in the keyvalue #272
Comments
This might be a limit of the VMF format itself? I was pretty sure it's encoded as ascii |
Hammer will save the vmf as ANSI encoding, but it doesn't make non-ASCII characters stopped working. If you compile the map without postcompiler it will success with no problem. edit: I tried to compile the map while vmf is saved as UTF-8 encoding, still same error. |
I have added game_text entity to one of my test map, you can give it a try and see how it goes with postcompiler: |
The proper encoding for Source file formats is not really well specified. VMFs aren't really decoded at all, it just deals directly with bytes and assumes it behaves like ASCII. Any ASCII-compatible encoding. I'm really not sure how my postcompiler should try and be compatible... |
When the map contain any of non-ASCII character texts in the keyvalue, the postcompiler will throw a exception with following:
How to reproduce:
If you remove the minus sign and leave only non-ASCII character, the text will be automatic removed by vbsp and make keyvalue empty.
The text was updated successfully, but these errors were encountered: