Ognacの雑感

木漏れ日々

目次

Blog 利用状況

書庫

ギャラリ

~が〜に化ける…………Oracle xe

UTF-8で"~" は EFBD9E
       "?" は E3809C です。

Oracle xe での話

普通に VBなり C#なりの言語で
   insert into work(str) values('~')
で挿入して
   select str from work
で取得しても、なんにも問題化しません。

SQL*Plus で
   insert into work(str) values('~')
を実行し、
   select str from work
で取得しても、なんにも問題化しません。

ところが、SQL*Plusで
   insert into work(str) values('~')
を実行し、言語で
        sql = "select str from work"
        cmd.CommandText = sql
        Dim dr As Oracle.DataAccess.Client.OracleDataReader = cmd.ExecuteReader()
        Dim dt As New DataTable
        dt.Load(dr)
        Dim x As String = dt.Rows(0)("str").ToString
        Debug.Print(x) 
を実行すると
 xは  "?" になるのです。
パッと見は、同じ字に見えるので見過ごすとこでした。
たまたま、あるはずのデータがヒットしないので、追及していくと、上記の文字化けが原因でした。
 データインサートをSQL*PLUSて行った分でした。
よりによって、類似した字に化けるとは、意図的というかギャグとしか思えない。
UTF-8=>SJIS=>UTF-8 などのコード変換に起因するものでしょうか...?

 SQL_Serverでは発生しないので、SQL*Plus上のコード変換が原因かもしれません。
個人端末のXE環境での出来事なので、他の環境では未確認です。
しかし、コードのエンコード如何で文字が化けるのは不可避とはいえ、問題ありですね。
①などの機種依存字ならまだしも、"~"の通常の文字で化けるのは不思議です。
他にも化ける文字があるとみていいでしょうね。

投稿日時 : 2008年7月4日 0:56

Feedback

# re: ~が〜に化ける…………Oracle xe 2008/07/04 0:59 Ognac

補足. タイトルには "?"が出てるのに本文では "?"になっている。 UTF-8では化けるの?
"?"は "~" をBoldにしたような字です。

# re: ~が〜に化ける…………Oracle xe 2008/07/04 2:28 シャノン

SJISTILDEとかなんとかの問題?

# re: ~が〜に化ける…………Oracle xe 2008/07/04 9:14 鶏唐揚

これは有名な問題ですが、何が原因かというのは
DBや状況によって異なったりするので面倒ですね

あと関係ないですけど
('~')顔に見える

# re: ~が〜に化ける…………Oracle xe 2008/07/04 9:47 凪瀬

マイクロソフトのベンダ依存マッピングの問題ですよね、これ。
http://www.ingrid.org/java/i18n/unicode.html

# re: ~が〜に化ける…………Oracle xe 2008/07/04 10:13 らふぁ

wavedash問題ですな。
去年実際に体験して初めて知りましたよ。
あれ?データが足りない?とかで。

# re: ~が〜に化ける…………Oracle xe 2008/07/04 11:28 中吉

Wavedash問題、これから
Wavedash('~')と表記しよう^^
#困ったチャンみたいでかわいいから、怒りが消えるかも!?

# re: ~が〜に化ける…………Oracle xe 2008/07/04 14:11 Ognac

皆様、コメントありがとうございます。
Wavedash('~')として、やじゅさんがUPされてましたwwww............記憶に残ってなかった....www
http://blogs.wankuma.com/yaju/archive/2008/04/21/134328.aspx
有名な問題のようで、'~'だけの為に、JAPANESE_JAPAN.JA16SJISTILDE を設定していたのか。
遭遇してみないと、他人事なんだぁと改めて後悔。
 コード体系の制定は、ベンダーの独自解釈しては行けない領分なんだと改めて感じました。
 だらかといって、Serverのコード体系をSJISにするのは反対です。

# re: ~が〜に化ける…………Oracle xe 2008/07/05 2:05 Ognac

問題の字ですが、会社の環境では "~"の字が
上下逆の字に表示されます。
しかし、自宅です、"~"のBoldに見えます。
これも VistaとxPの差かもしれません。
同じコード体系でもOSによって表示体がことなるのは
.......モヤモヤ感が抜けない....

# Its hard to judge when to let go of the button to shoot, especially given the quick loading of the power bar and the in-game attributes of each player changing many variables, not to mention the way the player is positioned, the weather conditions and 2017/03/12 21:46 Its hard to judge when to let go of the button to

Its hard to judge when to let go of the button to shoot,
especially given the quick loading of the power bar and
the in-game attributes of each player changing many variables, not to mention the
way the player is positioned, the weather
conditions and what boots he's wearing. This would require you to carefully analyze your competition timetable.
You'll find the usual mix of music tracks in the menus, they don't seem especially
relevant but then again a soundtrack of football songs would be pretty painful.

# The ball is knocked while dribbling when it is kept in front. Make sure that the only time you dribble is when there is a clear reason for you to do so. You'll find the usual mix of music tracks in the menus, they don't seem especially relevant but then 2017/05/10 5:53 The ball is knocked while dribbling when it is kep

The ball is knocked while dribbling when it is kept in front.
Make sure that the only time you dribble is when there is a clear reason for
you to do so. You'll find the usual mix of music tracks in the menus, they
don't seem especially relevant but then again a soundtrack of football songs would be pretty painful.

# Its hard to judge when to let go of the button to shoot, especially given the quick loading of the power bar and the in-game attributes of each player changing many variables, not to mention the way the player is positioned, the weather conditions and 2017/05/12 0:03 Its hard to judge when to let go of the button to

Its hard to judge when to let go of the button to shoot, especially given the quick
loading of the power bar and the in-game attributes
of each player changing many variables, not to mention the way the player
is positioned, the weather conditions and what boots he's wearing.

This would require you to carefully analyze your competition timetable.
While the quick and dirty way to do this is to pay
high enough to rank on the top of the ads list,
this can easily break your budget.

# t hurt to pay heavily for England football travel packages no matter what the outcome of the game may be. You may also perform a Youtube video if you're comfortable getting before a camera. You'll find the usual mix of music tracks in the menus, they d 2017/05/31 4:51 t hurt to pay heavily for England football travel

t hurt to pay heavily for England football travel packages
no matter what the outcome of the game may be.

You may also perform a Youtube video if you're comfortable getting before a camera.
You'll find the usual mix of music tracks in the menus, they don't seem especially
relevant but then again a soundtrack of football songs would be pretty
painful.

# New York, NY (May 18, 2009) – The Andrew Mc - Donough B+ Foundation, an organization focused on kids helping kids fight cancer has announced a partnership with MLS W. This would require you to carefully analyze your competition timetable. Pushing: A pena 2017/07/04 13:15 New York, NY (May 18, 2009) – The Andrew Mc - Dono

New York, NY (May 18, 2009) ? The Andrew Mc - Donough B+ Foundation, an organization focused on kids helping kids fight cancer has announced a partnership with MLS W.
This would require you to carefully analyze your competition timetable.
Pushing: A penal foul resulting from the unfair use of the
arms or body to push, shove, or otherwise force an opponent into changing position or direction.

# Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us 2021/08/30 5:22 Write more, thats all I have to say. Literally, it

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
You obviously know what youre talking about, why
throw away your intelligence on just posting videos
to your weblog when you could be giving us something
informative to read?

# Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us 2021/08/30 5:23 Write more, thats all I have to say. Literally, it

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
You obviously know what youre talking about, why
throw away your intelligence on just posting videos
to your weblog when you could be giving us something
informative to read?

# Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us 2021/08/30 5:24 Write more, thats all I have to say. Literally, it

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
You obviously know what youre talking about, why
throw away your intelligence on just posting videos
to your weblog when you could be giving us something
informative to read?

# Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us 2021/08/30 5:25 Write more, thats all I have to say. Literally, it

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
You obviously know what youre talking about, why
throw away your intelligence on just posting videos
to your weblog when you could be giving us something
informative to read?

# I'm gone to tell my little brother, that he should also pay a visit this blog on regular basis to obtain updated from most recent gossip. 2021/09/02 10:14 I'm gone to tell my little brother, that he should

I'm gone to tell my little brother, that he should also pay a visit
this blog on regular basis to obtain updated from most recent gossip.

# I'm gone to tell my little brother, that he should also pay a visit this blog on regular basis to obtain updated from most recent gossip. 2021/09/02 10:15 I'm gone to tell my little brother, that he should

I'm gone to tell my little brother, that he should also pay a visit
this blog on regular basis to obtain updated from most recent gossip.

# I'm gone to tell my little brother, that he should also pay a visit this blog on regular basis to obtain updated from most recent gossip. 2021/09/02 10:16 I'm gone to tell my little brother, that he should

I'm gone to tell my little brother, that he should also pay a visit
this blog on regular basis to obtain updated from most recent gossip.

# I'm gone to tell my little brother, that he should also pay a visit this blog on regular basis to obtain updated from most recent gossip. 2021/09/02 10:17 I'm gone to tell my little brother, that he should

I'm gone to tell my little brother, that he should also pay a visit
this blog on regular basis to obtain updated from most recent gossip.

# Unquestionably believe that which you said. Your favorite justification seemed to be on the web the easiest thing to be aware of. I say to you, I definitely get annoyed while people consider worries that they just do not know about. You managed to hit 2021/09/03 3:05 Unquestionably believe that which you said. Your f

Unquestionably believe that which you said. Your
favorite justification seemed to be on the web the easiest thing
to be aware of. I say to you, I definitely get annoyed while people consider
worries that they just do not know about. You managed to hit the
nail upon the top and defined out the whole thing without having side-effects ,
people could take a signal. Will probably be back to get more.

Thanks

# Unquestionably believe that which you said. Your favorite justification seemed to be on the web the easiest thing to be aware of. I say to you, I definitely get annoyed while people consider worries that they just do not know about. You managed to hit 2021/09/03 3:06 Unquestionably believe that which you said. Your f

Unquestionably believe that which you said. Your
favorite justification seemed to be on the web the easiest thing
to be aware of. I say to you, I definitely get annoyed while people consider
worries that they just do not know about. You managed to hit the
nail upon the top and defined out the whole thing without having side-effects ,
people could take a signal. Will probably be back to get more.

Thanks

# Unquestionably believe that which you said. Your favorite justification seemed to be on the web the easiest thing to be aware of. I say to you, I definitely get annoyed while people consider worries that they just do not know about. You managed to hit 2021/09/03 3:07 Unquestionably believe that which you said. Your f

Unquestionably believe that which you said. Your
favorite justification seemed to be on the web the easiest thing
to be aware of. I say to you, I definitely get annoyed while people consider
worries that they just do not know about. You managed to hit the
nail upon the top and defined out the whole thing without having side-effects ,
people could take a signal. Will probably be back to get more.

Thanks

# Unquestionably believe that which you said. Your favorite justification seemed to be on the web the easiest thing to be aware of. I say to you, I definitely get annoyed while people consider worries that they just do not know about. You managed to hit 2021/09/03 3:08 Unquestionably believe that which you said. Your f

Unquestionably believe that which you said. Your
favorite justification seemed to be on the web the easiest thing
to be aware of. I say to you, I definitely get annoyed while people consider
worries that they just do not know about. You managed to hit the
nail upon the top and defined out the whole thing without having side-effects ,
people could take a signal. Will probably be back to get more.

Thanks

# Hi there to every body, it's my first pay a visit of this website; this web site includes awesome and truly excellent stuff in favor of visitors. 2021/09/06 14:01 Hi there to every body, it's my first pay a visit

Hi there to every body, it's my first pay a visit of this website; this
web site includes awesome and truly excellent stuff in favor
of visitors.

# Hi there to every body, it's my first pay a visit of this website; this web site includes awesome and truly excellent stuff in favor of visitors. 2021/09/06 14:03 Hi there to every body, it's my first pay a visit

Hi there to every body, it's my first pay a visit of this website; this
web site includes awesome and truly excellent stuff in favor
of visitors.

# I visit daily a few sites and information sites to read posts, however this webpage presents quality based posts. quest bars https://www.iherb.com/search?kw=quest%20bars quest bars 2021/09/13 21:08 I visit daily a few sites and information sites to

I visit daily a few sites and information sites to read posts, however this webpage presents quality based posts.
quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

# I visit daily a few sites and information sites to read posts, however this webpage presents quality based posts. quest bars https://www.iherb.com/search?kw=quest%20bars quest bars 2021/09/13 21:09 I visit daily a few sites and information sites to

I visit daily a few sites and information sites to read posts, however this webpage presents quality based posts.
quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

# I visit daily a few sites and information sites to read posts, however this webpage presents quality based posts. quest bars https://www.iherb.com/search?kw=quest%20bars quest bars 2021/09/13 21:10 I visit daily a few sites and information sites to

I visit daily a few sites and information sites to read posts, however this webpage presents quality based posts.
quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

# I visit daily a few sites and information sites to read posts, however this webpage presents quality based posts. quest bars https://www.iherb.com/search?kw=quest%20bars quest bars 2021/09/13 21:11 I visit daily a few sites and information sites to

I visit daily a few sites and information sites to read posts, however this webpage presents quality based posts.
quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

# Wow, awesome blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is great, let alone the content! 2021/10/26 5:15 Wow, awesome blog layout! How long have you been b

Wow, awesome blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your website is great, let alone the content!

# Very good information. Lucky me I ran across your website by accident (stumbleupon). I've saved it for later! 2021/10/27 4:29 Very good information. Lucky me I ran across your

Very good information. Lucky me I ran across your website by accident (stumbleupon).
I've saved it for later!

# Very good information. Lucky me I ran across your website by accident (stumbleupon). I've saved it for later! 2021/10/27 4:30 Very good information. Lucky me I ran across your

Very good information. Lucky me I ran across your website by accident (stumbleupon).
I've saved it for later!

# Very good information. Lucky me I ran across your website by accident (stumbleupon). I've saved it for later! 2021/10/27 4:31 Very good information. Lucky me I ran across your

Very good information. Lucky me I ran across your website by accident (stumbleupon).
I've saved it for later!

# Very good information. Lucky me I ran across your website by accident (stumbleupon). I've saved it for later! 2021/10/27 4:32 Very good information. Lucky me I ran across your

Very good information. Lucky me I ran across your website by accident (stumbleupon).
I've saved it for later!

# I'm amazed, I have to admit. Seldom do I come across a blog that's equally educative and amusing, and without a doubt, you've hit the nail on the head. The problem is something too few men and women are speaking intelligently about. I'm very happy I cam 2021/11/12 14:15 I'm amazed, I have to admit. Seldom do I come acro

I'm amazed, I have to admit. Seldom do I come across a blog that's equally educative and amusing, and without a doubt, you've hit the nail on the head.

The problem is something too few men and women are speaking intelligently about.

I'm very happy I came across this in my hunt for something relating to
this.

タイトル
名前
Url
コメント