Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] German character display on report
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] German character display on report
 Login/Join
 
Gold member
posted
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
 
Posts: 55 | Registered: May 05, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Reply With QuoteReport This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 55 | Registered: May 05, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 55 | Registered: May 05, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
That's strange... sorry can't open your link here.


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] German character display on report

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.