Focal Point
[CLOSED] how to handle special characters in webfocus

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3327069076

June 01, 2014, 10:39 AM
Prajakta
[CLOSED] how to handle special characters in webfocus
Hi,

I am working on a french report which has many alphabets with grave accent in it. The French language pack is not enabled due to which I need to handle it in different way. I tried the option of HEXBYT command(with different ASCII codes for different special characters). However, it tends to work sometimes but then sometimes it gives question marks in place of those special characters.

Am I going wrong somewhere????

It would be great if someone could give me inputs on the above issue.

Thanks,

This message has been edited. Last edited by: <Kathryn Henning>,
June 01, 2014, 02:24 PM
Alan B
You need to change the NLS settings on the WebFOCUS server and in the Client Administration console.

For the main European languages I found that code page 923 - Latin 9 (ISO8859-15) on the server and 65001 - Unicode (UTF-8) on the client seemed to work effectively. This is assuming that the characters are held correctly in the database.


Alan.
WF 7.705/8.007
June 02, 2014, 12:15 AM
Rifaz
After setting is being done,see one of the old post from Tony.
 -REPEAT :Loop FOR &Count FROM 33 TO 255;
-SET &Char = HEXBYT(&Count, 'A1');
-TYPE &Count &Char
-:Loop 



-Rifaz

WebFOCUS 7.7.x and 8.x
June 02, 2014, 12:36 AM
Prajakta
Hi,

Thank you for the above 2 suggestions! But I am not sure how to go ahead with making the NLS settings. Can somebody give me details on the same. Is it possible to handle that in the Webfocus fex itself or it needs to be taken care only at the server and client side as mentioned above!

Thanks,
June 02, 2014, 03:53 AM
Alan B
These are server and client settings and have to be done on the applicable console.

You cannot display a character if it is not within the available code page on the server and client.


Alan.
WF 7.705/8.007
June 02, 2014, 04:16 AM
Prajakta
hi Alan,

Thank you! when i try the below code:
-REPEAT :Loop FOR &Count FROM 33 TO 255;
-SET &Char = HEXBYT(&Count, 'A1');
-TYPE &Count &Char
-:Loop

I get the characters with grave accent. Also when i concatenate with the other character strings, it does show the output.However,when i try to put it in the report it comes as something else.

I would not be able to change any client and server end settings.
Please let me know if you have any other suggestions. Smiler Smiler

Thanks,
June 02, 2014, 08:51 AM
Alan B
You cannot display reports with with unsupported code page characters. Either change the code page or display incorrect characters.


Alan.
WF 7.705/8.007