Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: 上传剪贴板中文乱码 #69

Closed
hitopo opened this issue Oct 12, 2024 · 7 comments
Closed

[Issue]: 上传剪贴板中文乱码 #69

hitopo opened this issue Oct 12, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@hitopo
Copy link

hitopo commented Oct 12, 2024

Describe the bug

Apollo和Artemis都是最新的版本

步骤:

  1. 提前在串流机器上复制中文
  2. 上传剪贴板到被串流PC上
  3. 粘贴

粘贴出来的中文是乱码

串流机器:Android,Redmi note 12 turbo
被串流机器:PC,Windows 11Pro 23H2

Steps to reproduce

6e8b7a8f16d178ae3e52bfa4691ceee

Affected games

No response

Other Moonlight clients

None

Moonlight adjusted settings

None

Moonlight adjusted settings (please complete the following information)

No response

Moonlight default settings

Yes

Gamepad-related connection issue

Yes

Gamepad-related input issue

Yes

Gamepad-related streaming issue

Yes

Android version

Android 12

Device model

Redmi note 12 turbo

Server PC OS version

Windows 11 Pro 23H2

Server PC GeForce Experience version

No response

Server PC Nvidia GPU driver version

No response

Server PC antivirus and firewall software

No response

Screenshots

No response

Relevant log output

No response

Additional context

No response

@hitopo hitopo added the bug Something isn't working label Oct 12, 2024
@ClassicOldSong
Copy link
Owner

你的Windows是否设置默认使用UTF-8了

@ClassicOldSong
Copy link
Owner

以及麻烦确认一下获取剪贴板的话中文是否乱码

@hitopo
Copy link
Author

hitopo commented Oct 12, 2024

获取剪贴板没问题

Windows之前没有开启UTF8,我刚才打开了,试了一下,还是乱码,不知道和我语言设置是不是有关系
image

@hitopo
Copy link
Author

hitopo commented Oct 12, 2024

另一个Y700平板也有这个问题,感觉是Windows相关的问题

@ClassicOldSong
Copy link
Owner

获取剪贴板没问题

Windows之前没有开启UTF8,我刚才打开了,试了一下,还是乱码,不知道和我语言设置是不是有关系

image

OK,了解了

Windows的字符串处理是老大难问题了,目前上传是手动获取当前codepage再转换的,可能还是得换别的方法

@ClassicOldSong ClassicOldSong transferred this issue from ClassicOldSong/moonlight-android Oct 12, 2024
@ClassicOldSong
Copy link
Owner

应该修好了,试试看?

https://github.com/ClassicOldSong/Apollo/releases/tag/v0.2.4-alpha.2

@hitopo
Copy link
Author

hitopo commented Oct 12, 2024

可以了,感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants