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

UTF-8 Text #5

Open
rivaslive opened this issue Oct 1, 2021 · 1 comment
Open

UTF-8 Text #5

rivaslive opened this issue Oct 1, 2021 · 1 comment

Comments

@rivaslive
Copy link

First of all, congratulations on the good work you are doing this free, the problem is that my client writes in Spanish and it seems that when that happens the ´ in the words or the use of the ñ inserts strange characters

image

@rivaslive
Copy link
Author

Solution for the moment, although this does not work for all languages

export const decodeUTFText = (text) => {
	text.replaceAll('&aacute', 'á');
	text.replaceAll('é', 'é');
	text.replaceAll('í', 'í');
	text.replaceAll('ó', 'ó');
	text.replaceAll('ú', 'ú');
	text.replaceAll('ñ', 'ñ');
	return text
}

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

1 participant