#372 A Chinese character is not entered in the text box

닫힘
ArlongLi2 년 전을 오픈 · 15개의 코멘트
ArlongLi 코멘트됨, 2 년 전

When I typed Chinese characters in the chat box, all the characters I typed were question marks "?"

I'm using Steam Deck, in game mode, GE-Proton42, Proton 7.0-5.

When I typed Chinese characters in the chat box, all the characters I typed were question marks "?" I'm using Steam Deck, in game mode, GE-Proton42, Proton 7.0-5.
demicorn 코멘트됨, 2 년 전
https://notabug.org/Krock/dawn/src/master/TROUBLESHOOTING.md#locale-specific-keyboard-layout-not-working
Krock 코멘트됨, 2 년 전
소유자

@ArlongLi The troubleshooting lacked the mention of locale -a which I now added. Did this solve your issue? If not, what did you try so far?

@ArlongLi The troubleshooting lacked the mention of `locale -a` which I now added. Did this solve your issue? If not, what did you try so far?
ArlongLi 코멘트됨, 2 년 전
포스터

I tried to add "LANG=zh_CN.utf8 %command%" to the startup option, but it stopped the game from starting. In SteamDeck game mode, after clicking to start the game, it stayed in the logo interface.

I tried to add "LANG=zh_CN.utf8 %command%" to the startup option, but it stopped the game from starting. In SteamDeck game mode, after clicking to start the game, it stayed in the logo interface.
ArlongLi 코멘트됨, 2 년 전
포스터
아직 콘텐츠가 없습니다.
anlorsp 코멘트됨, 2 년 전

In most Chinese distribution, the $LANG variable appears to be "zh_CN.UTF-8" instead of "zh_CN.utf8". You can have a try.

You can also check out the Chinese Arch Wiki:https://wiki.archlinuxcn.org/wiki/%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97#%E6%9C%AC%E5%9C%B0%E5%8C%96

In most Chinese distribution, the $LANG variable appears to be "zh_CN.UTF-8" instead of "zh_CN.utf8". You can have a try. You can also check out the Chinese Arch Wiki:https://wiki.archlinuxcn.org/wiki/%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97#%E6%9C%AC%E5%9C%B0%E5%8C%96
Krock 코멘트됨, 2 년 전
소유자

@ArlongLi Did you find a solution?

Please let me know about workarounds that I could then document properly.

@ArlongLi Did you find a solution? Please let me know about workarounds that I could then document properly.
jajedi 코멘트됨, 2 년 전

Afaik, this is not exclusive to GI. It happens in so many of titles. I tried Roblox once and it cannot type anything but English. There's not much you can do to address the issue, besides of copying text from outside, then paste it in-game, which works totally fine.

Afaik, this is not exclusive to GI. It happens in so many of titles. I tried Roblox once and it cannot type anything but English. There's not much you can do to address the issue, besides of copying text from outside, then paste it in-game, which works totally fine.
Krock 코멘트됨, 2 년 전
소유자

@jajedi If you would like to test the workarounds, check out TROUBLESHOOTING.md (environment variables and gnome keyboard settings). It would be good to have a definitive solution for these problems because the copy&paste solution is hardly convenient.

@jajedi If you would like to test the workarounds, check out TROUBLESHOOTING.md (environment variables and gnome keyboard settings). It would be good to have a definitive solution for these problems because the copy&paste solution is hardly convenient.
Bluefissure 코멘트됨, 2 년 전

For en_US.utf8, all Chinese characters will become ??? because of the wrong locale, using zh_CN.utf8 can resolve the problem.

However, the zh_CN.utf8 is not built in steamOS by default, I have a script to enable the Chinese and Japnese locale. (You need to provide the root password for the script)

Step by step:

  1. Create a sudo password if you don't have one
  2. Open a terminal, run wget https://file.bluefissure.com/SteamDick/CJ_locale_enabler.sh and then bash CJ_locale_enabler.sh
  3. Restart steamOS if necessary
  4. Follow instructions at Game crashes on launch -- For Steam, remember to use zh_CN.utf8 instead of en_US.utf8.

BTW the LC_CTYPE is not necessary if LC_ALL is set.

For `en_US.utf8`, all Chinese characters will become `???` because of the wrong locale, using `zh_CN.utf8` can resolve the problem. However, the `zh_CN.utf8` is not built in steamOS by default, I have [a script](https://file.bluefissure.com/SteamDick/CJ_locale_enabler.sh) to enable the Chinese and Japnese locale. (You need to provide the root password for the script) Step by step: 1. Create a sudo password if you don't have one 1. Open a terminal, run `wget https://file.bluefissure.com/SteamDick/CJ_locale_enabler.sh` and then `bash CJ_locale_enabler.sh` 1. Restart steamOS if necessary 1. Follow instructions at [Game crashes on launch -- For Steam](https://notabug.org/Krock/dawn/src/master/TROUBLESHOOTING.md#game-crashes-on-launch), remember to use `zh_CN.utf8` instead of `en_US.utf8`. BTW the `LC_CTYPE` is not necessary if `LC_ALL` is set.
Krock 코멘트됨, 2 년 전
소유자

Thank you @Bluefissure. Before I commit the script you provided and updated instructions, I would like to know the following:

  1. Is the exec workaround from #358 needed? The start options should already set the locale correctly.
  2. What is the reason behind the package source update (pacman-key) and the line pacman -S glibc ?
Thank you @Bluefissure. Before I commit the script you provided and updated instructions, I would like to know the following: 1. Is the `exec` workaround from https://notabug.org/Krock/dawn/issues/358#issuecomment-33915 needed? The start options should already set the locale correctly. 2. What is the reason behind the package source update (pacman-key) and the line `pacman -S glibc` ?
Bluefissure 코멘트됨, 2 년 전

Hi @Krock,

  1. Last time (~4 months ago) when I tried to solve the problem that CN client crashes on launch only in steam, it was necessary to set the locale both in the steam-runtime script and the start option. The steam-runtime script is used when executing a third-party game/software from steam, as noted in the source code. I'm not sure whether it can handle the locale setting in start option well now, I can double-check after getting home and reply to you later.
  2. The pacman commands are used to install the glibc, I'm not sure whether it's mandatory to install glibc for locale-gen in steamdeck since many dev dependencies are peeled off from steamOS. The script comes from reddit and I only added Chinese locale to it.

BTW I suggest holding the instructions update for a little while since I modified my steamOS a lot, it's better to make sure the instructions can accurately solve the typing/encoding problem by asking @ArlongLi or anyone else to double check.

Hi @Krock, 1. Last time (~4 months ago) when I tried to solve the problem that CN client crashes on launch only in steam, it was necessary to set the locale **both** in the steam-runtime script and the start option. The steam-runtime script is used when executing a third-party game/software from steam, as noted in [the source code](https://github.com/ValveSoftware/steam-runtime/blob/master/templates/run.sh). I'm not sure whether it can handle the locale setting in start option well now, I can double-check after getting home and reply to you later. 1. The pacman commands are used to install the glibc, I'm not sure whether it's mandatory to install glibc for locale-gen in steamdeck since many dev dependencies are peeled off from steamOS. The script comes from [reddit](https://www.reddit.com/r/SteamDeck/comments/wc14gg/enable_japanese_locale_on_steam_deck/) and I only added Chinese locale to it. BTW I suggest holding the instructions update for a little while since I modified my steamOS a lot, it's better to make sure the instructions can accurately solve the typing/encoding problem by asking @ArlongLi or anyone else to double check.
Bluefissure 코멘트됨, 2 년 전

@Krock There's no need to set the locale for the steam-runtime script now, I think the latest steamOS has fixed the locale setting in the start option for 3rd party apps.

Setting the locale in the start option is still necessary, otherwise the CN client crashes as usual.

@Krock There's no need to set the locale for the steam-runtime script now, I think the latest steamOS has fixed the locale setting in the start option for 3rd party apps. Setting the locale in the start option is still necessary, otherwise the CN client crashes as usual.
ArlongLi 코멘트됨, 2 년 전
포스터

@Bluefissure I still haven't found the right way. I don't want to use the root command to change the system because I have to reset it after the system is updated. With the latest SteamOS3.4.6 and Proton51, typing zh_CN.UTF8 at startup still doesn't work.

@Bluefissure I still haven't found the right way. I don't want to use the root command to change the system because I have to reset it after the system is updated. With the latest SteamOS3.4.6 and Proton51, typing `zh_CN.UTF8` at startup still doesn't work.
Bluefissure 코멘트됨, 2 년 전

@ArlongLi I don't understand why you want to reset it after the system update.

Did you enable the zh_CN.UTF8 in your locale before adding it?

@ArlongLi I don't understand why you want to reset it after the system update. Did you enable the `zh_CN.UTF8` in your locale before adding it?
Krock 코멘트됨, 1 년 전
소유자

No reply in over two months. I assume the issue is solved or obsolete.

If there is an issue with the documentation please let me know how to improve it.

No reply in over two months. I assume the issue is solved or obsolete. If there is an issue with the documentation please let me know how to improve it.
Krock 1 년 전가 Close
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 6명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.