-
Notifications
You must be signed in to change notification settings - Fork 38
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
JSON output of TMC location table with Unicode characters #82
Comments
Thanks! Just for reference, I think I need to embed a newer version of jsoncpp and enable emitUTF8 https://stackoverflow.com/questions/50637362/how-can-i-ask-jsoncpp-to-encode-unicode-strings |
windytan
added a commit
that referenced
this issue
May 23, 2022
Use the emitUTF8 option in jsoncpp 1.9.x to output UTF-8 instead of escaped character codes. These would sometimes appear in text read from a location table.
See if this helps! I quickly tested by converting one of the location tables I have into UTF-8, and it printed the names fine. |
Yes, this works now :-)
I'll close this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After several years I have tried TMC again today and discovered that the JSON output prints the C++ Unicode source code and not the character like in
NAMES.DAT
For example:
Slovenia
Hint: Menge\u0161 - Braslov\u010de is Mengeš - Braslovče
Austria
Hint: K\u00e4rntner Stra\u00dfe is Kärntner Straße
This seems to be in redsea/src/tmc/locationdb.cc lines 65ff.
The text was updated successfully, but these errors were encountered: