Focal Point
[RESOLVED] Sp Characters (i.e. Reg Trademark, Copyright) on HTML and PDF reports

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

August 18, 2014, 07:57 AM
Stacie Stone
[RESOLVED] Sp Characters (i.e. Reg Trademark, Copyright) on HTML and PDF reports
I have read information on showing special characters on reports but I couldn't find an example where the text that contains the special character originates from DB2.

We have text that is housed in DB2 that we query for and show on our HTML or PDF output. How do we code the registered trademark symbol and the copyright symbol within our DB2 table so that it is translated properly on both HTML and PDF output?

This message has been edited. Last edited by: Stacie Stone,


WebFOCUS 8.0.8
PDF, HTML
August 18, 2014, 09:50 AM
Ram Prasad E
You need to set correct code page for DB so that it accepts special characters. Other option is to encode special characters while inserting into DB and decode it while reading from WebFOCUS. But this will be costly this decode needs to be performed for each record.

Thanks,
Ram


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
August 18, 2014, 03:22 PM
susannah
Stacie, for html output, the code for copyright and for registration mark
 
&|copy; &|reg;

note the pipe after the ampersand, that's the escape character that tells focus that this is not a dialogue manager variable.
For PDF, this wont work; the only thing i can suggest is take a screen shot of the two, make images.
pita, i know, but it will work.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
August 18, 2014, 05:39 PM
Waz
I think that © and ® are standard characters in most fonts.

Hex, A9 or 169 is ©
Hex, AE or 174 is ®

You can enter these via the keyboard with alt+nnnn.

So alt+0169 give you © and alt+0174 gives you ®


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

August 18, 2014, 07:55 PM
Alan B
From the WebFOCUS side, once you have the data in your database, as long as you use the correct code pages in WebFOCUS these characters will be visible in all outputs. Use 137 not 437 on the server and 137 on the client.


Alan.
WF 7.705/8.007
August 19, 2014, 06:59 AM
atturhari
With WF 8, you can display superscripts (copyright symbol) on Report Data, Heading, and Footing Lines.

The following code will display the copyright symbol.
SUPCOPY/A20= ''||HEXBYT(169,'A2')||'';

Note: In the StyleSheet, every component that will display a superscript has the attribute
MARKUP=ON.

Looking into the WF-8 documentation will help you better.
August 19, 2014, 07:31 AM
Alan B
If the data is coming from the database, unless you have the correct code page on the reporting server, special characters will not display correctly.


Alan.
WF 7.705/8.007
August 25, 2014, 02:35 PM
Stacie Stone
We ended up reporting a case with IBI for help with this due to our code page set-up. Will post again when we have a resolution. Thanks everyone for your input to my question!


WebFOCUS 8.0.8
PDF, HTML
September 03, 2014, 01:20 PM
Stacie Stone
Worked with IBI for resolution. Updated our Client Code Page from 437 to 137. Thanks again to everyone for your input! ~Stacie


WebFOCUS 8.0.8
PDF, HTML