Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Are there any issues with UTF8-without BOM in msvc?

This thread is locked; no one can reply to it. rss feed Print
Are there any issues with UTF8-without BOM in msvc?
foretion
Member #17,091
June 2019

I'm having a problem that can not draw ustr.

such as this question.
link : https://www.allegro.cc/forums/thread/612879

I changed the encoding of a source code file(*.c) to UTF-8 without signature in MSVC,

but when I print out "가나다라마바사" with al_draw_ustr, It print out "가?".

and I print out "나" with al_draw_ustr, MSVC notifies two errors there C2001, C2143

How can I solve this problem?

raynebc
Member #11,908
May 2010

Is it really necessary to omit the BOM? If you include the BOM does the problem go away?

foretion
Member #17,091
June 2019

No, it doesn't work.

When i compile with UTF8(include BOM), it prints null(look likes blank)

Go to: