XorTroll / Plutonium

An easy-to-use UI framework for Nintendo Switch homebrew
https://xortroll.github.io/Plutonium/
MIT License
272 stars 40 forks source link

Cannot display Chinese characters properly #8

Closed rekcah1986 closed 5 years ago

rekcah1986 commented 5 years ago

this->helloText = new pu::element::TextBlock(300, 300, "Hello 汉字测试!");

Got “Hello ⊠字⊠⊠!”

rekcah1986 commented 5 years ago

And my system version is 6.2.0 and the language is "Simple Chinese / English"

XorTroll commented 5 years ago

Yeah, Plutonium renders in UTF-8. Would require to rewrite some things to unicode.

rekcah1986 commented 5 years ago

So how to resolve it if I want to translate goldleaf?

rekcah1986 commented 5 years ago

I changed to "\u6c49\u5b57\u6d4b\u8bd5", but it's still the same.

XorTroll commented 5 years ago

New pu::String handles UTF16 fine.