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] Checking for non-english comments

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Checking for non-english comments
 Login/Join
 
Member
posted
I have a modify procedure that allows users to enter comments, in both Chinese and English. I need to make sure that the english comments contain no Chinese characters.

I have this validate in the procedure:

-* check for shift-in
WD01_V/A68 = UFMT(XDESCRIPT, 68, WD01_V);
SISO1/I3 = POSIT(WD01_V,68,'0E', 2, SISO1);

-* check for shift-out
WD01_V/A68 = UFMT(XDESCRIPT, 68, WD01_V);
SISO2/I3 = POSIT(WD01_V,68,'0F', 2, SISO2);

When I type english characters (E LINE 1), it translates to hex:
C540D3C9D5C540F14040404040404040404040404040404040404040404040404040

Within in this HEX character string the POSIT sub-routine finds the characters '0F', however this in not really the "shift-out" representation, it's just part of the string because of the line I typed (E LINE 1).

I could check each individual character, however I wanted to know if there is a better way to do this?

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


WebFOCUS 7.6.4
 
Posts: 2 | Registered: August 10, 2012Report This Post
Virtuoso
posted Hide Post
Would the PATTERN function help?


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
FYI, the issue is resolved: I created a routine to extract each byte from the comment and then converted that byte to Hexadecimal using the UFMT sub-routine. I then checked for the shift-in/shift out characters (0E and 0F).

Thanks gjk for sharing the info with all.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 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] Checking for non-english comments

Copyright © 1996-2020 Information Builders