cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Charset Encoding

Former Member
0 Likes
505

Hi,

I'm creating an application that uses the portuguese (PT/BR) language, and when i use any special caracter it shows a wierd code.

I tried to change the charset of the genareted HTML file, but i can only do it using JavaScript, and sice the HTML is already generated at this point, nothing happens.

Have any ideas on how i can fix this?

Is there any configuration on DS to change the encoding?

I tried creating a SDK component with a javascript that would replace the messed up caracters, but even there it didn't work.

Best

Leandro

View Entire Topic
mike_howles4
Active Contributor
0 Likes

Can you specify the character you are attempting to display?  (Or a picture of the character and the Unicode code if it won't show up on SCN either) -- I can try fiddling with some tricks and see if I can do it.

Former Member
0 Likes

Hi Michael,

Create a text component and set the following text to it.

Leandrão Lindão

It will show "Leandrão Lindão".

If instead of the string above i use UTF enconding form example

Leandrão Lindão it will show the right text.

But I can't have it like that, since the other developers that will use my component will lose a lot of time converting every special caracter.

Best

Leandro

mike_howles4
Active Contributor
0 Likes

I see the odd behavior.  You have me stumped, but your solution is at least a valid workaround of using an html entity encoding...  Wish I knew of a better way.  Maybe someone else can help.

bharathsap
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Leandro,

There is a note 1955537 in 1.2 SP1 (due to be released in Feb) which offers URL encode capability.

Something like - Convert.urlEncode(string);

You can check it out as soon as it is available

Regards,

Bharath

Former Member
0 Likes

Brarath,

Thanks for you input.

Something that i found funny, was that the data that returns from a BW query displays the special caracters just fine.

Just the text field and any text that i use on my SDK development that show the wrong formatting.

Question.. why did the correct answer was assigned to you, if i didn't do it? Can anyone else asign the correct answer??

Best

Leandro

mike_howles4
Active Contributor
0 Likes

I think mods can mark posts as correct.