Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Does NLS Settings 65001 - Unicode(UTF-8) support extended ascii

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Does NLS Settings 65001 - Unicode(UTF-8) support extended ascii
 Login/Join
 
Platinum Member
posted
When I run this

-REPEAT :Loop FOR &Count FROM 33 TO 255;
-SET &Char = HEXBYT(&Count, 'A1');
-TYPE &Count &Char
-:Loop

all the extended ascii symbols are blank.
MY NLS setting is set to 65001 - Unicode(UTF-8)
and my language en.
Does this setting not support exnteded ascii.l How to get extended ascii working?

This message has been edited. Last edited by: FP Mod Chuck,


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
What's your output (HTML, PDF, etc...)?




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
HTML, Just ran that code with nothing else,it would default to a browser.


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
quote:
-REPEAT :Loop FOR &Count FROM 33 TO 255;-SET &Char = HEXBYT(&Count, 'A1');-TYPE &Count &Char-:Loop

Unicode chars extend beyond char 256, so extend your counter.

When you are dealing with Unicode and "non-standard" code pages, you really need to make sure you know more about it.


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Thanks Tony, changing it to A8 instead of A1 is showing values for the other higher numbers. I understand when you meant counter , since unicode can extend into thousands not just 255 , I have seen till 60000 or more, but I also had to increase the A1.

This message has been edited. Last edited by: getit,


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
quote:
changing it to A8 instead of A1

Uh, No, the result of HEXBYT is always 'A1'.

What I meant is
-REPEAT :Loop FOR &Count FROM 33 TO nnn;

Where you need to research what "nnn" should be.


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Unicode can store using one to four 8 bit-bytes, 1 Byte is only until 128 after that it increases.


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
If you just want to add a unicode char to the HTML page, then you can use a decimal numeric character reference.

e.g.
-HTMLFORM BEGIN
<table>
<tr><th>Decimal</th><th>Escape Char</th><th>Unicode Char</th></tr>
-REPEAT :Loop FOR &Count FROM 8352 TO 8373;
<tr><td>&Count</td><td><span>&</span>#&Count;</td><td>&|#&Count;</td></tr>
-:Loop
</table>
-HTMLFORM END


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
quote:
Unicode can store using one to four 8 bit-bytes, 1 Byte is only until 128 after that it increases.

So my ploy to encourage you to prove me wrong worked Smiler

We can always give the answers to people but they do not necessarily learn. Encouraging them to do some of the research themselves will help them retain some of the knowledge that they gain during that research!

Essentially, "give a person a fish and they'll eat well for a day, ...... etc."


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
quote:
give a person a fish and they'll eat well for a day


Unfortunately, that is not the society we live in any more.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Give a person a fish and they will take it apart to find out what you did to it. People don't trust free fish anymore these days.

And then if you teach a person how to fish, they will inquire why the h*ll you're not doing it instead, since you know so much better how.

Ah, those days when people were still happy to be taught something...


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
cynicism = Old FOCUS Programmer


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
quote:
cynicism = Old FOCUS Programmer

I don't know what you mean Music
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
quote:
So my ploy to encourage you to prove me wrong worked


It did, I followed your advice exactly and read on it which helped solved my issue Smiler


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
Excellent!

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Does NLS Settings 65001 - Unicode(UTF-8) support extended ascii

Copyright © 1996-2020 Information Builders