THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/05/2008 at 20:04, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.x
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
When I try to print to the console, something like this:
"Olá, estaria um muitíssimo bom dia, não fossem as poças de água"
(this is portuguese, don't bother in translating it ;))
...I get a lot of weird characters where the accented characters are.
This also happens when providing a title to a dialog, for example.
I tried to create a routing to change all accented characters to their non-accented version:
> \> clean_diacritics(sentence) \> { var clean,size,f,new_char; \> \> size=sizeof(sentence); \> clean=""; \> for(f=0;f<size;f++) \> { \> new_char=strstr("áéíóúàèìòùâêîôûãõäëïöüÁÉÍÓÚÀÈÌÒÙÂÊÎÔÛÃÕÄËÏÖÜçÇ",tostring(sentence[f],"c")); \> if(new_char>=0) \> clean=stradd(clean,strmid("aeiouaeiouaeiouaoaeiouAEIOUAEIOUAEIOUAOAEIOUcC",new_char,1)); \> else \> clean=stradd(clean,tostring(sentence[f],"c")); \> } \> return clean; \> } \>
But his didn't work :(
Is there any way to correctly show or even access the accented characters?
Thank you in advance for any reply :)