- Home /
Is it possible to set -codepage compiler flag?
Hi,
I work with multiple teams across East Asia that have a wide variety of setups and would like to enforce UTF-8 source files. On windows, however, unless otherwise specified, mono seems to use the default OEM codepage, which is usually anything but UTF-8. Including a BOM in the source file forces proper detection of UTF-8, however it gets forgotten from time to time, so so far I've set up detection in CI, but that feels only like a stopgap measure.
Is it possible to directly set compiler flags - specifically -codepage:utf8 - from Unity?
Is there maybe a better way to support this environment?
Thanks.
Your answer
Follow this Question
Related Questions
UTF-8 characters on Android build 1 Answer
FileMode.Create an encoded xml file in UTF-8 1 Answer
How do I convert from unicode to surrogate pairs? 2 Answers
WWW.text string not correct? 2 Answers
Problems with Russian characters within strings (C#) 3 Answers