由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - remove special character
相关主题
delete characters between parentheses?Unix中怎么能buffer中记住你上次敲的command
[转载] problem with chinese characterretrieving Chinese from database
Re: How to display Chinese text (query results) properly on web ??Re: Please help on replacing character i
存取中文问题in MSSql 7.0How MySQL support Chinese Character?
ms sql server 2000 中文版 --〉英文版 的问题change the character set of Access
一个SQL query的问题急,mdb 导到 SQL Server 中 Chinese Character 会是乱码么?
instr() 在 pl/sql 中是什么意思?Oracle char AND varchar2 datatype question.
[转载] 有谁试了MySql 4.11中的中文全文搜索功能菜鸟求助: 用 Oracle Sqlldr Control File 能不能改character set?
相关话题的讨论汇总
话题: character话题: chr话题: printable话题: special话题: remove
进入Database版参与讨论
1 (共1页)
t*********i
发帖数: 217
1
I need to remove this special character '¿' from a column. it was
brought to database by copy/paste from MS world. We are using character set
AL32UTF8. Anyone has an idea how to do this? Oracle 10.2.
thanks!
i****a
发帖数: 36252
2
can you so something like
update tbl
set col = replace(col, '¿', '')
t*********i
发帖数: 217
3
Maja, thanks for your input!
I did try the replace function, it worked for me at other characters, such
as 'Ã','Â','¢','¯','¤','â', but not on this
one. So I did some research, and found out in AL32UTF8, there are several
codes represent this very similar character. What I found are chr(49795) ,
chr(49794), chr(49792), chr(49816). And I know there are more.
is there a code map out there for these 5 digits characters?
i****a
发帖数: 36252
4
what about, instead of removing this one special character, try removing
anything that's not in the printable ASCII range?

such
several
,

【在 t*********i 的大作中提到】
: Maja, thanks for your input!
: I did try the replace function, it worked for me at other characters, such
: as 'Ã','Â','¢','¯','¤','â', but not on this
: one. So I did some research, and found out in AL32UTF8, there are several
: codes represent this very similar character. What I found are chr(49795) ,
: chr(49794), chr(49792), chr(49816). And I know there are more.
: is there a code map out there for these 5 digits characters?

j*****n
发帖数: 1781
5
good point!
see here for printable ASCII range.

【在 i****a 的大作中提到】
: what about, instead of removing this one special character, try removing
: anything that's not in the printable ASCII range?
:
: such
: several
: ,

t*********i
发帖数: 217
6
Thanks all. But I am always a little confused about the concept of '
printable' when I searched online in the last a few days. Does printable or
non-printable simply mean those characters can be print out? I tried to
write a PL/SQL to print out all charater form chr(1) to chr(10000), and did
see many characters could not show. But specifically for these 5 digits code
like 49816, 49792, they actually were printed out but look like garbage
characters. Any one could clear me out of this?
on the ot
i****a
发帖数: 36252
7
ASCII printable character are basically the regular characters you can
type form a standard english keyboard.
your 2nd question, that needs analysis of the actual data with your
business unit, or who speaks those foreign languages

printable or
to
and did
digits code
garbage
foreign
'garbage

【在 t*********i 的大作中提到】
: Thanks all. But I am always a little confused about the concept of '
: printable' when I searched online in the last a few days. Does printable or
: non-printable simply mean those characters can be print out? I tried to
: write a PL/SQL to print out all charater form chr(1) to chr(10000), and did
: see many characters could not show. But specifically for these 5 digits code
: like 49816, 49792, they actually were printed out but look like garbage
: characters. Any one could clear me out of this?
: on the ot

t*********i
发帖数: 217
8
That is what I thought. thank you.

【在 i****a 的大作中提到】
: ASCII printable character are basically the regular characters you can
: type form a standard english keyboard.
: your 2nd question, that needs analysis of the actual data with your
: business unit, or who speaks those foreign languages
:
: printable or
: to
: and did
: digits code
: garbage

1 (共1页)
进入Database版参与讨论
相关主题
菜鸟求助: 用 Oracle Sqlldr Control File 能不能改character set?ms sql server 2000 中文版 --〉英文版 的问题
菜鸟求助: 用 Oracle Sqlldr Control File 能不能改character set?一个SQL query的问题
菜鸟求助: 用 Oracle Sqlldr Control File 能不能改character set?instr() 在 pl/sql 中是什么意思?
菜鸟求助: 用 Oracle Sqlldr Control File 能不能改character set?[转载] 有谁试了MySql 4.11中的中文全文搜索功能
delete characters between parentheses?Unix中怎么能buffer中记住你上次敲的command
[转载] problem with chinese characterretrieving Chinese from database
Re: How to display Chinese text (query results) properly on web ??Re: Please help on replacing character i
存取中文问题in MSSql 7.0How MySQL support Chinese Character?
相关话题的讨论汇总
话题: character话题: chr话题: printable话题: special话题: remove