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     [CLOSED] Escaping the É character for Return via XML

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Escaping the É character for Return via XML
 Login/Join
 
Platinum Member
posted
I have a report that I am returning to an HTML page via an XML call. I have several database values that have a É character. I have quickly found that the XML request will not return this value and have tried to use the STRREP function to change this to a É with no luck...

Any pointers on how I can transform this?

This is what I have tried...

STRREP(78,FULLNAME,1,'É',8,'&|Eacute;',78,FULLNAME_2);

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


WebFOCUS 8201M/Windows Platform
 
Posts: 109 | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
I think that you have to use the Unicode character in XML rather than the special construct of É, but what are you doing with the XML upon receipt? Are you processing it via a XSL etc.? If so, I'm not sure how you progress.

T

This message has been edited. Last edited by: Tony A,



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
Here is my solution...

STRREP(90, STRREP(78,FULLNAME,1, HEXBYT (201,'A1'), 8,'&|eacute;',78,'A78') ,1, HEXBYT (200,'A1'), 8,'&|egrave;',90,'A90');


WebFOCUS 8201M/Windows Platform
 
Posts: 109 | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Update on this,

I went into my DEFINE FUNCTION that handles this functionality to add another translation. I added the following

VAL3/A256 = STRREP(256,VAL2,1, HEXBYT(39,'A1'), 6,'&|apos;',256,'A256');

Converting an apostraphe to ' to allow for the proper display of data to XML.

After running my code at closer inspection somewhere along the way my ' turned into

 & amp ; apos ; 

ampersand_amp_semicolon_apos_semicolon (damn you html)

which of course is not correct. It seems as though the returned data only occurs when outputting to XML format.

Does anyone know how to correct this? I am afraid that any portion of my function that is using this same technique is also now extinct.

Thanks


WebFOCUS 8201M/Windows Platform
 
Posts: 109 | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
I doubt this is the problem - just a recommendation. I noticed in both your examples that you are replacing a single character with multiple characters, but using the same length for both input and output fields. Make sure you have sufficient space in your output field to handle the extra characters. This may not be much of a problem if you have only one occurrence of the single character in the input field. But if you have several, you could be replacing a few single characters with dozens of extra characters.

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report 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     [CLOSED] Escaping the É character for Return via XML

Copyright © 1996-2020 Information Builders