About the synchronous encoding of Atelier
Hello,every body.
I am having a problem when using atelier. I found that the web front-end related files (such as csp, css, js, etc.) will change in format when they are synced to the server.
For example:
The original format of the js file may be UTF-8. However, when I edited and saved in atelier, the file version format on the server became ANSI. I tried to configure the environment in eclipse, but it doesn't seem to work.
E.g:
Because the file contains Chinese characters, this has a significant impact on the actual use.
So, what should I do to solve this problem. Thank you in advance.
Open Atelier project Properties and check encoding there. Set to UTF8 if it's not.
Hello Eduard Lebedyuk,First of all, thank you for your answer.
Sorry, I forgot to say that I tried it before. But it doesn't seem to work either.
It should be noted that the file format of the local client is consistent with the expectations, but the server side seems to be affected by the difference.
Client:
While, the server side:
Thank you again for your help~
What's the server locale?
The operating system I am using now is win10 Pro. The original regional setting was China, and it was later changed to the United States. However, it still seems to have no effect.
Later, I found out that as long as the text file does not contain Chinese characters, such as "乱码", the file encoding format on the server side is normal, that is UTF-8. Otherwise, the file format is automatically saved to ANSI (very likely corresponding code page For 936 GBK).
I don't know if this involves the relevant settings or processing of the Chinese code for the operating system, and whether this information is enough to provide more clues or tips for everyone.
But still thank you.
Let's see Cache locale.
Open Cache terminal and execute:
There, choose 1) Display current locale and copy the output (should be two screens) here.
Oops, a joke, I am sorry that I understood wrong before.
Configuration is like this:
You can to change default file I/O from GB18030 to UTF8.
To do that, execute do ^NLS and choose:
And choose UTF8 there. After that, your I/O table should look like that:
After that, restart Cache and delete/reimport faulty files in Atelier
Note that this action (changing NLS defaults) can be disruptive to existing Cache applications.
That's right, this is the correct solution, sincerely thank you for your help!
wish you a happy life~