-
Notifications
You must be signed in to change notification settings - Fork 24
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
chinese unicode #9
Comments
Isn't the double slash simply the result of the JSON encoding? If you load this JSON file and print out the string, it should again have only a single slash. Btw, are you sure you need this special handling of Chinese characters? |
@bjorn Think You, Yes, if you don't encode it this way, the output will be garbled after the file |
I guess there is some encoding bug we need to fix. Could you provide the full script, or at least a small functional one that reproduces the issue (and not as screenshot)? |
Sure, with pleasure! |
@bjorn This file format.zip |
@whaqzhzd Hmm, regardless of the unicode issue, why are you writing a JS script that exports to basically the same format as the JSON plugin? In the script I read: // The main purpose of this script is to restore the
// exported json format using a js script. So that
// developers can easily and quickly develop the map
// twice However, if backwards compatibility is a problem with the changes made to the JSON format since Tiled 1.2, you can switch to the "json1" plugin in the Preferences to use the format that was used until Tiled 1.1. Would that be a solution for you? |
we will exclude object level data except that the export format is the same as json. Then reassemble the data to export to a new file, such as pathfinding data, and we will build the graph data in the script to better control the map made by tiled in the development game. Of course there are other features. Such as streamlining the format or generating configuration files more easily. |
@bjorn ^_^ |
After I encode Chinese in unicode in my script, I save the single slash, but the file is double slash, which causes an error in the encoding of the Chinese content, how should I save the Chinese content correctly?
The text was updated successfully, but these errors were encountered: