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

toUpperCase() does not upperCase accents #1866

Closed
mrbbp opened this issue Jun 21, 2020 · 1 comment
Closed

toUpperCase() does not upperCase accents #1866

mrbbp opened this issue Jun 21, 2020 · 1 comment

Comments

@mrbbp
Copy link

mrbbp commented Jun 21, 2020

let txt= "béèàîâ";
txt = txt.toUpperCase();
console.log(txt); // Béèàîâ
let txtUp = "bÉÈÀÎÂ";
txtUp = txtUp.toUpperCase();
console.log(txtUp); // BÉÈÀÎÂ
for( let c of txt) {
  console.log(c, c.charCodeAt(0));
}
for( let c of txtUp) {
  console.log(c, c.charCodeAt(0));
}

if i check ascii code, accents stay in lowerCase...

espruino pico firmware 2v05.100 chrome appweb ide 0.73.7

@gfwilliams
Copy link
Member

gfwilliams commented Jun 22, 2020

Thanks - yes, this should be changed (at least on devices with enough memory).

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

2 participants