Andersen07
Industrial
- Dec 8, 2021
- 28
I'm trying to set the [tt]UGII_ENV_FILE[/tt] environment variable to point to a [tt]ugii_env.dat[/tt] file located in the company's server.
The path to the file is: [tt]\\172.16.17.2\NX FILES\CONFIGURAÇÕES\ugii_env.dat[/tt]
As you can see, it contains special characters like whitespace, [tt]Ç[/tt] and [tt]Õ[/tt].
Then I go to Windows environment variables dialog and create a new system variable [tt]UGII_ENV_FILE=\\172.16.17.2\NX FILES\CONFIGURAÇÕES\ugii_env.dat[/tt]
When I start NX, I get the following error message:
[pre]
**************************************************************************
**************************************************************************
* This session had the following startup problems. *
**************************************************************************
**************************************************************************
File o:\nx2007\ip1700\src\syss\shar\ind\env.c: line 1082: ENV: Env file \\172.16.17.2\NX FILES\CONFIGURAÇÕES\ugii_env.dat could not be
loaded Environment file ugii_env.dat does not exist
[/pre]
Notice that instead of writing "[tt]CONFIGURAÇÕES[/tt]" in the file path, it wrote "[tt]CONFIGURAÇÕES[/tt]", meaning it didn't understand the characters.
Wasn't NX supposed to work with several languages?
I'd like to keep the folders with these names, if possible. Can someone help me please?
Edit: I figured NX is trying to read the path as if it were ANSI (Windows 1252) encoded, while it's actually UTF-8 BOM. How to fix?
The path to the file is: [tt]\\172.16.17.2\NX FILES\CONFIGURAÇÕES\ugii_env.dat[/tt]
As you can see, it contains special characters like whitespace, [tt]Ç[/tt] and [tt]Õ[/tt].
Then I go to Windows environment variables dialog and create a new system variable [tt]UGII_ENV_FILE=\\172.16.17.2\NX FILES\CONFIGURAÇÕES\ugii_env.dat[/tt]
When I start NX, I get the following error message:
[pre]
**************************************************************************
**************************************************************************
* This session had the following startup problems. *
**************************************************************************
**************************************************************************
File o:\nx2007\ip1700\src\syss\shar\ind\env.c: line 1082: ENV: Env file \\172.16.17.2\NX FILES\CONFIGURAÇÕES\ugii_env.dat could not be
loaded Environment file ugii_env.dat does not exist
[/pre]
Notice that instead of writing "[tt]CONFIGURAÇÕES[/tt]" in the file path, it wrote "[tt]CONFIGURAÇÕES[/tt]", meaning it didn't understand the characters.
Wasn't NX supposed to work with several languages?
I'd like to keep the folders with these names, if possible. Can someone help me please?
Edit: I figured NX is trying to read the path as if it were ANSI (Windows 1252) encoded, while it's actually UTF-8 BOM. How to fix?