Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » Problem with accentuated char and Uppercase
Problem with accentuated char and Uppercase [message #1805] Mon, 10 November 2008 12:00 Go to next message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
I think there is a bug with the uppercase function in the column dictionary, as the chars like áéíóúàèìòù aren't being converted to uppercase.
Re: Problem with accentuated char and Uppercase [message #1807 is a reply to message #1805] Mon, 10 November 2008 12:47 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
Radicore does not assume that the character set is UTF8 and that it has to deal with multibyte characters, so it does not. You can force your implemetation to invoke the function overloading options with MBSTRING by looking at http://www.radicore.org/forum/index.php?t=msg&th=167& ;goto=668.

Re: Problem with accentuated char and Uppercase [message #1809 is a reply to message #1805] Mon, 10 November 2008 13:29 Go to previous messageGo to next message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
Just added mbstring.func_overload = 2 in php.ini but it's still not working. Where else can I look to find a solution?
Re: Problem with accentuated char and Uppercase [message #1810 is a reply to message #1809] Mon, 10 November 2008 13:29 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
Did you restart Apache?

Re: Problem with accentuated char and Uppercase [message #1811 is a reply to message #1805] Mon, 10 November 2008 13:35 Go to previous messageGo to next message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
Yes, and I just tested with this code:
$insert_array['nompart'] =  mb_strtoupper($row['nompart']);

and it's not converting to uppercase, it must be a php issue, I will continue investigating...
Re: Problem with accentuated char and Uppercase [message #1812 is a reply to message #1805] Mon, 10 November 2008 13:42 Go to previous messageGo to next message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
Just tried this:
mb_strtoupper($row['nompart'],'utf-8');

and it works.
In my php.ini I have:
default_charset="utf-8"

I will continue investigating..
Re: Problem with accentuated char and Uppercase [message #1813 is a reply to message #1805] Mon, 10 November 2008 14:12 Go to previous messageGo to next message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
I added this two lines to php.ini and it worked:
default_charset="utf-8"
mbstring.internal_encoding    = utf-8  ; Set internal encoding to UTF-8
Re: Problem with accentuated char and Uppercase [message #1814 is a reply to message #1813] Mon, 10 November 2008 14:58 Go to previous message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
Thank goodness for that! It sounds like I should put a summary of all this in the FAQ.

Previous Topic: Insertorupdate and autoincrement
Next Topic: Incorrect Login Message
Goto Forum:
  


Current Time: Fri Apr 19 12:23:37 EDT 2024

Total time taken to generate the page: 0.01626 seconds