Forum OpenACS Development: Re: special characters at tcl page

Collapse
Posted by Brian Fenton on
Hi Iuri

I'm afraid I don't have an answer for you but it looks like it may be an issue with glob and encoding. If you try to reproduce the problem in tclsh, that may help to narrow it down. Take a look at this discussion for some pointers:
http://objectmix.com/tcl/352730-tclhttpd-utf-8-a-2.html

There is a script referenced in the article that may be of help: http://www.logic.at/people/avl/stuff/convertNamesToUtf8.tcl

hope this helps
Brian

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.