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

fix: use encoding on latin1 strings from cdclient #1694

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Conversation

EmosewaMC
Copy link
Collaborator

Tested that cafe corner no longer shows up with the incorrect text and now shows up as cafe corner.

@Xiphoseer said to "just hook up an iterator to the utf8 encoder" so I did just that by reading the string from binary as u8 (because if you try and convert a std::string it uses signed characters which utf8 did not like) and then run that through the exact same function that handled the utf16 to wtf8 conversion.

use template function

Update GeneralUtils.cpp

consolidate duplicate code

Update GeneralUtils.cpp

Update BinaryIO.cpp

compilers
@DarwinAnim8or DarwinAnim8or merged commit 6ed6efa into main Dec 24, 2024
4 checks passed
@aronwk-aaron aronwk-aaron deleted the latin1 branch December 24, 2024 23:40
dCommon/GeneralUtils.cpp Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants