Unable to remove hidden character from field [message #548214] |
Tue, 20 March 2012 19:07  |
 |
rajeevalone
Messages: 11 Registered: March 2012
|
Junior Member |
|
|
I have the same problem now..
My database is in UTF8 character set..
And it is not supporting chr(194)||chr(160)
Can you please tell me what character set you were using then ?
And.. is there a way to handle non breaking spaces in UTF8..
Thanks In advance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Unable to remove hidden character from field [message #548370 is a reply to message #548369] |
Wed, 21 March 2012 11:28   |
 |
rajeevalone
Messages: 11 Registered: March 2012
|
Junior Member |
|
|
when am using this command
INSERT INTO rjv1 VALUES (chr(82)||chr(88)|| unistr('\00A0')||chr(66) );
and then
SELECT Dump(col) FROM rjv1; then am getting the output as:
Typ=1 Len=5: 82,88,194,160,66 (which is perfect!)
Now, How to replace this character with a regular space..
I tried this command SELECT Dump(REPLACE(col,chr(194)||chr(160),' ')) FROM rjv1;
But no luck
Still SELECT Dump(col) FROM rjv1;
shows the same output
Typ=1 Len=5: 82,88,194,160,66
|
|
|
|
Re: Unable to remove hidden character from field [message #548372 is a reply to message #548371] |
Wed, 21 March 2012 11:52   |
 |
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
does the follow help?
09:58:00 SQL> @rjv1
09:58:07 SQL> INSERT INTO rjv1 VALUES (chr(82)||chr(88)|| unistr('\00A0')||chr(66) );
1 row created.
09:58:07 SQL> SELECT Dump(col) FROM rjv1;
DUMP(COL)
--------------------------------------------------------------------------------
Typ=1 Len=5: 82,88,194,160,66
09:58:07 SQL> SELECT Dump(REPLACE(col,unistr('\00A0'),' ')) FROM rjv1;
DUMP(REPLACE(COL,UNISTR('\00A0'),''))
--------------------------------------------------------------------------------
Typ=1 Len=4: 82,88,32,66
09:58:07 SQL> SELECT Dump(col) FROM rjv1;
DUMP(COL)
--------------------------------------------------------------------------------
Typ=1 Len=5: 82,88,194,160,66
09:58:07 SQL> update rjv1 set col = REPLACE(col,unistr('\00A0'),' ');
1 row updated.
09:58:07 SQL> SELECT Dump(col) FROM rjv1;
DUMP(COL)
--------------------------------------------------------------------------------
Typ=1 Len=4: 82,88,32,66
09:58:07 SQL>
[Updated on: Wed, 21 March 2012 11:58] Report message to a moderator
|
|
|
|