remove strange character
Moderators: chulett, rschirm, roy
remove strange character
hello
in my job , i call a web service that return me in some field this : �
but i'm not able to remove this strange caracter
Someone know how to do this ?
thank you
in my job , i call a web service that return me in some field this : �
but i'm not able to remove this strange caracter
Someone know how to do this ?
thank you
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
You can try doing a double convert. Doing a copy paste may not work. In those cases, do have a look at that character in hex editor to identify it and then use Char() with decimal value of that character.
The character I can see here a unicode character used for replacement character with decimal code of 65533. Refer this link for details.
The character I can see here a unicode character used for replacement character with decimal code of 65533. Refer this link for details.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.
Genius may have its limitations, but stupidity is not thus handicapped.
You probably need to use the optional second argument of "allow8bits" for those functions to work properly with that value. Also wondering if there is a DB2 function equivalent to the Oracle DUMP function to get you the value via SQL.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
The character set encoding that the web service is using will determine how many bytes are used to encode that particular character.
It would be 3 bytes in UTF-8 (a variable width character set). It would be 2 bytes in UTF-16 (a fixed width character set).
You will have to use transform functions that work with unicode characters to work at the character level.
You may need to add the unicode extended property to your strings.
Mike
It would be 3 bytes in UTF-8 (a variable width character set). It would be 2 bytes in UTF-16 (a fixed width character set).
You will have to use transform functions that work with unicode characters to work at the character level.
You may need to add the unicode extended property to your strings.
Mike
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If the code point value is over 255 you will need UniChar() function rather than Char() function.
Code: Select all
if DSLink253.PER_FIRST_INITIAL = unichar ( 65533 ) then 'ok ' else 'ko'
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.