Cells with accent are truncating

Topics: Developer Forum, User Forum
Dec 21, 2011 at 9:23 PM

When I insert an accented text in a cell, it is being trucated at the first character accented. Ex: If I try to insert the text "Trópia", only "Tr" is inserted.

The sample 01simple.php has an accented text being inserted in a cell and it works! The only difference is that 01simple.php is at a folder "Tests" at the same level of "Classes" folder and my program is not in a folder at the same level of "Classes" folder (and cannot be!).

Any idea?


Marcelo Trópia

Dec 27, 2011 at 7:41 PM

Oi Marcelo,

Try using utf8_encode(...) for the string your inserting.

Hope it'll work.


Dec 28, 2011 at 5:06 PM

Hi Thierry,

It worked!

Muito obrigado (thank you)!