Jump to content

[SOLVED] string encoding


photo

Recommended Posts

lightmap

Please, make sure that your source file is encoded in UTF-8 without BOM and you have added pragma at the beginning of the file:

#pragma execution_character_set("utf-8") // C++

UPD for C#

For C# you need to convert string (no pragma is required):

Encoding.Default.GetString(Encoding.UTF8.GetBytes("test тест")) // C#

No conversions will required starting with 2.10 SDK update, you can simply write code like this and it will work:

Log.message("Привет!\n"); // 2.10 and further :)

Thanks!

Edited by silent
  • Like 2

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
  • silent changed the title to [SOLVED] string encoding
×
×
  • Create New...