Content Type setting in html / Webclient

How can the Content-Type in the Webclients html header be set, eg. to iso-8859-1 or utf-8 .

I have a content that is unable to display special German characters.

Has anybody had to deal with such a situation.

Thanks

I am using Servoy 3.5.5-build 518

the content type should be already UTF-8
isnt that the case?

Do you have a sample where it doesn’t display the german chars correctly?

jcompagner:
the content type should be already UTF-8
isnt that the case?

Do you have a sample where it doesn’t display the german chars correctly?

Hi Johan,

Normally I expect the default to be set to UTF-8, however, there’s no way of telling if that is the case - I can’t see it in the browser’s ‘View page source’.

Is there a way to enforce that if it is not showing? Might be helpful, as we are experimenting with content from different geographical location.

If not, what would be a best practice to ensure that a particular character encoding in ensured at the client side?

Thanks for the feedback.

Bob Prah,

Softwear BV

what browser do you use?

with IE you can see it this way:

View menu → Encoding

then you see what is selected, and for servoy you should see a bullet behind Unicode (UTF-8)

jcompagner:
what browser do you use?

with IE you can see it this way:

View menu → Encoding

then you see what is selected, and for servoy you should see a bullet behind Unicode (UTF-8)

I’m using Firefox ver. 2.0.0.12.

Point of clarification: I mean Content-Type setting in a client’s tag. If you’d right-mouse click this forum’s page for instance, and choose option ‘View Source’ in IE or ‘View Page Source’ in Firefox, you’d probably find a meta tag Content-Type setting of the manner => charset=iso-8859-1. Is that right?. :?

no we dont that,
for example if i go to
http://demo.servoy.com:8080/servoy-webc … sample_crm

then in the source i cant find 1 meta tag.

jcompagner:
no we dont that,
for example if i go to
http://demo.servoy.com:8080/servoy-webc … sample_crm

then in the source i cant find 1 meta tag.

Thanks for the feedback, Johan.

What would then be a best practice to ensure that a particular character encoding in ensured at the client side? I have started with some German characters and I’m getting some wird results, here and there.

Do you see them correctly in the smart client?

Because as i said the Servoy Webclient is all UTF-8 so it should be able to handle and display everything correctly.

jcompagner:
Do you see them correctly in the smart client?

Because as i said the Servoy Webclient is all UTF-8 so it should be able to handle and display everything correctly.

Viewing/Running the solution under Servoy Smartclient doesn’t help either. :)

It appears to some extent, to be a database issue, specifically, the customers tables that was shipped with my version of Servoy - It produces some wird characters under Servoy as well as when it is viewed under Sybase Central. (ver. 5.0.0.3278)

Has anybody experience any such strange behavior? Is/Are there some tunning(s)/adjustment(s) that have to be done somewhere? Or maybe it’s a Servoy issue? I’m just curious :wink:

then it really seems that your database is not in UTF8 mode or created in UTF8

jcompagner:
then it really seems that your database is not in UTF8 mode or created in UTF8

Trust me, my copy of SQL Anywhere 10 has a default setting of UTF8, and we have not changed that ( see the Snapshots in the attachment).

The strange characters may probably have to do with the copy of the example database that was shipped with my version of Servoy Developer. Smile

The customer table for instance, has a strange character in the city column to represent Koeln.

Lets wait to see until someone else complain about the same too.

I appreciate the kind response, anyway.

SQL_Anywhere 10_Sybase_Central_Character_Encoding_Setting_Snapshot.doc (119 KB)