Focal Point
[CLOSED] German character display on report

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

July 30, 2014, 05:43 PM
Shirley
[CLOSED] German character display on report
Does anyone knows how to display German character on webfocus report without going to server change on the NLS?

For example, we have German language characters such as "ö". I want the webfocus report to display it correctly on the report.

Currently on the webfocs report, it's showing either "?" or "÷" instead of "ö".

This message has been edited. Last edited by: <Kathryn Henning>,


Shirley Huang
WF 7.7.04M MRE BID DevStudio
WIN2003, SQL Server 2000/DB2
HTML/PDF/EXL2k/AHTML
iSM 6.16
July 31, 2014, 08:37 AM
SWES
Hello Shirley,

Have you looked into the HEXBYT function?
Use this as a DEFINE field:
SP/A1 = HEXBYT(246, 'A1');

And you will see the umlaut!


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
July 31, 2014, 09:43 AM
Francis Mariani
I tried the character on my server in Canada and it displays correctly.

You MAY be able to alter the character set by doing the following: specify the character set in a meta tag.

Here's an example. You can try various character sets described here.

Below is an example. When I ran this example WITHOUT the meta tag, the report displayed the character, when I used our default meta tag it did not display correctly.

TABLE FILE CAR
PRINT
COMPUTE TEST/A100 = MODEL || (' ' | 'ö' | ' ' ) || BODYTYPE;
BY COUNTRY

ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN

-HTMLFORM BEGIN
<!DOCTYPE html>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<html>

<head>
<meta charset="ISO646-DE">

<title>WebFOCUS Report</title>

<body>
!IBI.FIL.H001;
</body>

</html>
-HTMLFORM END




Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 06, 2014, 06:34 PM
Shirley
SWES - I tried your method, it didn't work for me.

Francis - Thanks! Your example will work if the report is in HTML format. What if the report format is in different format such as Excel/PDF/AHTML?

Many thanks!


Shirley Huang
WF 7.7.04M MRE BID DevStudio
WIN2003, SQL Server 2000/DB2
HTML/PDF/EXL2k/AHTML
iSM 6.16
August 07, 2014, 05:18 AM
SWES
Shirley, could you be more specific, what did you see on your screen?

DEFINE FILE CAR
SP/A1 = HEXBYT(246, 'A1');
END


TABLE FILE CAR
PRINT SP
BY COUNTRY
END


Should work, I just don't know in what context you would like the umlaut. For example in a HEADING or in a defined field or?


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
August 07, 2014, 04:09 PM
Shirley
https://drive.google.com/file/...eVk/edit?usp=sharing


SWES - I'm still not seeing "ö".


Shirley Huang
WF 7.7.04M MRE BID DevStudio
WIN2003, SQL Server 2000/DB2
HTML/PDF/EXL2k/AHTML
iSM 6.16
August 08, 2014, 03:21 AM
SWES
That's strange... sorry can't open your link here.


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
August 08, 2014, 03:43 AM
Alan B
This is why code pages are needed. In some environments ascii 246 will give the ÷ (what Shirley is seeing at times) and some the ö (what SWES is seeing). When and where is to big a subject here.

The answer is that you do need to set the code page on the server and client for the character set you are using, otherwise the character display is unreliable/wrong.


Alan.
WF 7.705/8.007