Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
i have a problem in display of XML File, problem of special characters.
when i open the file with a editor xml, i got like two points :
and when i open the file with mozilla firefox, i got a special character :
And when i use tlogRow to display data in talend, i got empty space:
I didn't understand this display difference and why in the mozilla firefox, i got this special caractere, it's not good when i display data in web (i want to remove this special caractere in mozilla)
I tried to use tReplace to remove the two point (..) / (¨) but i got nothing, i got the same result.
Thanks
Reda
You can try to remove all non-ascii char from your string:
row1.fieldName.replaceAll("[^\x0A\x0D\x20-\x7E]", "")
(not tested)
Hi,
Are you usin tFileInputXML component?
If so, try to define Encoding as UTF-8 on Advanced Setting tab.
I use tAdvancedFileOutoutXML and i tried to use all encoding but the always i got the same result
OK but what about your input ?
My input is a Data from database, i give you three display by using tAdvancedfileoutputXML (fireffox and XMLCopy Editor) and tLogrow.
When i execute the my requete sql in hybris i got like this ( big point )
It seems the special character is in your input.
Try to display ascii code for each character, this will give you the answer for "which character must be removed to clean the output".
The code ascii is 149, it correspond à "ò", i use treplace but always without success.
You can try to remove all non-ascii char from your string:
row1.fieldName.replaceAll("[^\x0A\x0D\x20-\x7E]", "")
(not tested)
Yes, Thanks TRF, just i used this code:
replaceAll("[^\\x00-\\x7F]", "");
Great!
Thank's to mark your case as solved.