Forum OpenACS Development: Re: special characters at tcl page

Collapse
Posted by Iuri Sampaio on
Hi Brian,

Thanks for your help.
[glob] wasn't the issue. It was an econding problem indeed. I didn't find exaclty what the problem was. Somehow AOLServer switches the latin letters that have accents (ex. ç, Â, ã, â, ó, ...) to other signals.
The good thing is it does follow a pattern.

I solved it mannually, which means i read the whole error.log and looked for all special chars generated.
Then, in the script i used the tcl proc [string map {...} ...] to replace them to valid letters.

From that script we could build a new API on oacs core to treat specifically this weird issue.

It would be great if we have time to look at this and talk to OCT people. I am opened for discussion and also to contribute, even improve it, with whatever is possible.

cheers,

Collapse
Posted by Emmanuelle Raffenne on
Hi Iuri,

Check in the developer support shell the result of "encoding system", it should be "utf-8" but I suspect you will get iso8859-1.

If it's the case, then add "encoding sytem utf-8" at the end of your config.tcl file, that should fix it.

Collapse
Posted by Emmanuelle Raffenne on
Iuri,

also make sure your database encoding is utf-8.