Special characters in Webspeed

bohrmann

Member
Hi,

I have some problems with special characters (é, á, à) when displaying texts from the text field of a database table.
My code looks like this:
FUNCTION f1 RETURNS LOGICAL
(INPUT cString AS CHARACTER):
[FONT=r_ansi] {&OUT} '<center>' + cString + '</center>' SKIP.[/FONT]
END.
[FONT=r_ansi][FONT=r_ansi] [/FONT][/FONT]
The cString gets the value from the database. It's properly displayed in the character-based Progress application, but not in Webspeed (strange symbols appear instead, eg. �).

Any idea, how we can influence the output in this case?

Progress 9.1E
SUN Solaris

Thanks,
Peter
 

Rob Fitzpatrick

ProgressTalk.com Sponsor
Why do you consider accented characters "special"?

If the same code receiving the same input provides different output in WebSpeed versus tty client, I would check the code pages that are in use in each.
 

Marian EDU

Member
I would check the code pages that are in use in each.

that will be the "charset" option when you set the content-type header property (output-content-type api) - "Content-Type" content="text/html; charset=ISO-8859-1"

if you need to accommodate data in different character encoding then you have to move to UTF and make sure you encode everything you pass to the web-stream using that code page.
 

bohrmann

Member
Thanks, that seems to work well! Any idea why it could have been set to utf-8, though the developers must have known that those kind of characters will be many times entered when certain field values are prompted?
 
Top