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

Add FoldToASCII functions for strings #196

Open
Idhrendur opened this issue Sep 29, 2022 · 3 comments
Open

Add FoldToASCII functions for strings #196

Idhrendur opened this issue Sep 29, 2022 · 3 comments

Comments

@Idhrendur
Copy link
Member

See ParadoxGameConverters/PGCG.commonItems#197 (comment) for the inspiration

@Idhrendur
Copy link
Member Author

We already have string conversion functions.

@Zemurin Zemurin reopened this Dec 31, 2022
@Zemurin
Copy link
Member

Zemurin commented Dec 31, 2022

This is for normalization of non-ascii into ascii strings manually because convert[xxyy]toASCII inserts 0 for chars it can't convert.

@IhateTrains
Copy link
Member

You could use the C implementation of AnyAscii for this:
https://github.com/anyascii/anyascii#anyascii

I've just switched to using the C# version of this in commonItems.NET.

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

No branches or pull requests

3 participants