Content Type setting in html / Webclient

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

Content Type setting in html / Webclient

Postby bobpee » Mon Mar 10, 2008 3:44 pm

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
Bob Prah,
[Servoy 5.2.4 - build 1006]
User avatar
bobpee
 
Posts: 81
Joined: Tue Mar 04, 2008 1:05 pm

Postby jcompagner » Tue Mar 18, 2008 2:54 pm

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?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby bobpee » Tue Mar 18, 2008 3:20 pm

jcompagner wrote: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
Bob Prah,
[Servoy 5.2.4 - build 1006]
User avatar
bobpee
 
Posts: 81
Joined: Tue Mar 04, 2008 1:05 pm

Postby jcompagner » Tue Mar 18, 2008 5:00 pm

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)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby bobpee » Tue Mar 18, 2008 5:25 pm

jcompagner wrote: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 <meta> 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?. :?
Bob Prah,
[Servoy 5.2.4 - build 1006]
User avatar
bobpee
 
Posts: 81
Joined: Tue Mar 04, 2008 1:05 pm

Postby jcompagner » Tue Mar 18, 2008 5:30 pm

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.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby bobpee » Tue Mar 18, 2008 5:51 pm

jcompagner wrote: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.
Bob Prah,
[Servoy 5.2.4 - build 1006]
User avatar
bobpee
 
Posts: 81
Joined: Tue Mar 04, 2008 1:05 pm

Postby jcompagner » Tue Mar 18, 2008 6:46 pm

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.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby bobpee » Wed Mar 19, 2008 11:51 am

jcompagner wrote: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:
Bob Prah,
[Servoy 5.2.4 - build 1006]
User avatar
bobpee
 
Posts: 81
Joined: Tue Mar 04, 2008 1:05 pm

Postby jcompagner » Thu Mar 20, 2008 12:24 pm

then it really seems that your database is not in UTF8 mode or created in UTF8
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby bobpee » Thu Mar 20, 2008 3:11 pm

jcompagner wrote: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.
Attachments
SQL_Anywhere 10_Sybase_Central_Character_Encoding_Setting_Snapshot.doc
SQL Anywhere 10 Character Default Character Encoding Settings - Snapshots
(118.5 KiB) Downloaded 414 times
Bob Prah,
[Servoy 5.2.4 - build 1006]
User avatar
bobpee
 
Posts: 81
Joined: Tue Mar 04, 2008 1:05 pm


Return to Web Development

Who is online

Users browsing this forum: No registered users and 4 guests