Re: Ucase() fails with UTF
Posted: Sun Jul 16, 2023 7:22 pm
Batman?
http://www.purebasic.com
https://www.purebasic.fr/english/
Batman?
Sorry for delay in reply, that does look odd. What is your OS version?
I'm using a macbook with chip Intel and macOS Monterey, v.12.6.3idle wrote: Fri Jul 21, 2023 10:11 amSorry for delay in reply, that does look odd. What is your OS version?
Code: Select all
Debug Asc("ñ")
Debug Asc(UCase("ñ"))
Code: Select all
; Download from https://dnscope.io/idlefiles/UTF16.pb
IncludeFile "UTF16.pb"
Define text$ = "ñ"
UTF16::StrUCase(text$)
Debug text$
I paste screenshots below each question.Sicro wrote: Fri Jul 21, 2023 1:47 pm @Torf
What are the outputs for the following code?https://ibb.co/1QWK07KCode: Select all
Debug Asc("ñ") Debug Asc(UCase("ñ"))
https://ibb.co/Lv5Wp9qCode: Select all
; Download from https://dnscope.io/idlefiles/UTF16.pb IncludeFile "UTF16.pb" Define text$ = "ñ" UTF16::StrUCase(text$) Debug text$
https://ibb.co/yqGqTxWidle wrote: Sat Jul 22, 2023 10:55 am Think you should try to update to pb 6.02 lts or 6.03. Something isn't right