UltraStar-Deluxe / USDX

The free and open source karaoke singing game UltraStar Deluxe, inspired by Sony SingStar™
https://usdx.eu
GNU General Public License v2.0
851 stars 161 forks source link

started over Steam i have no special characteres, just "?" #424

Closed silelmot closed 5 years ago

silelmot commented 5 years ago

Hello there, i tried to run ultrastardx from steam directly for my little couch-gaming-solution. unfortunately when started from steam there are no special characteres like è or Ö or even / instead i have just question marks. but started in linux directly it works flawlessly. i tried in arch linux, ubuntu 16.04 and ubuntu 18.04 any idea what could create this conflict with steam?

i believe i did'nt had these problems a year ago when i tried to run ultrastardx over steamos the last time.

s09bQ5 commented 5 years ago

What are your LANG, LC_CTYPE, and LC_ALL environment variables set to?

Ruedii commented 5 years ago

The program should probably force switch text handling to the data file's string type (hence UTF8) regardless of those settings.

The standard convention is that data files should be displayed in their locale if they aren't available in the system native locale. They should not be converted to the system locale, but instead just displayed as-is.

s09bQ5 commented 5 years ago

@Ruedii Feel free to make a pull request that fixes the code.

silelmot commented 5 years ago

i just tried ultrastardx world party , which is a fork of 1.1 and this runs flawlessly regarding the utf8-issue (not in other terms). since it is a fork of version 1.1 i believe that i don't remember it wrong, that i had ultrastardx running a year or more ago under steamos in an older version without errors.

s09bQ5 commented 5 years ago

I wonder if something breaks on Windows if we do SetMultiByteConversionCodePage(CP_UTF8) at the start of the program.

silelmot commented 5 years ago

i have absolute no idea how this program works. where shall i put it to compile and test it?

s09bQ5 commented 5 years ago

@silelmot See PR #427

silelmot commented 5 years ago

Great works now. Just cannot register some bands with "umlaut".

basisbit commented 5 years ago

regarding "Just cannot register some bands with "umlaut".", please open a new issue. The initial issue seems to be fixed and the issue creator confirmed that.