Download
Magazine
Develop
Account
Download
Magazine
Develop
Login
Forgot Account/Password
Create Account
Language
Help
Language
Help
×
Login
Login Name
Password
×
Forgot Account/Password
Category:
Software
People
PersonalForge
Magazine
Wiki
Search
OSDN
>
Find Software
>
Text Editors
>
Text Processing
>
nkf Network Kanji Filter
>
Forums
>
公開討議
>
円記号(U+00a5)の変換
nkf Network Kanji Filter
Fork
Description
Project Summary
Developer Dashboard
Web Page
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
History
Downloads
List of Releases
Stats
Source Code
Code Repository list
Git
nkf
CVS
View Repository
Ticket
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Communication
Forums
List of Forums
公開討議 (218)
Mailing Lists
list of ML
nkf-dev
News
Forums:
公開討議
(Thread #26595)
Return to Thread list
RSS
円記号(U+00a5)の変換 (2010-06-19 20:22 by
Anonymous
#51410)
Reply
Create ticket
U+00a5(円記号)をほかのコードに変換すると、全角の円記号(例えば、EUCなら0xA1EF)になりますが、0x5cに変換するオプションはありますでしょうか。
一部のアプリケーションで Shift_JIS のテキストを UTF に変換したときに、0x5c を U+00a5 にしてしまうものがあって困っています。
Reply to #51410
×
Subject
Body
Reply To Message #51410 > U+00a5(円記号)をほかのコードに変換すると、全角の円記号(例えば、EUCなら0xA1EF)になりますが、0x5cに変換するオプションはありますでしょうか。 > 一部のアプリケーションで Shift_JIS のテキストを UTF に変換したときに、0x5c を U+00a5 にしてしまうものがあって困っています。
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel
RE: 円記号(U+00a5)の変換 (2010-06-19 21:06 by
naruse
#51413)
Reply
Create ticket
--cp932 で変換されます。
ただ、いくつかほかの文字も一緒に変換されてしまうのでそこはご留意のほどを。
Reply to
#51410
Reply to #51413
×
Subject
Body
Reply To Message #51413 > --cp932 で変換されます。 > ただ、いくつかほかの文字も一緒に変換されてしまうのでそこはご留意のほどを。
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel
RE: 円記号(U+00a5)の変換 (2010-06-19 22:36 by
Anonymous
#51415)
Reply
Create ticket
ありがとうございました。
--cp932 で変換した後にさらに -e で EUC にしようかと思いましたが、--oc=CP51932 でもよいのでしょうか。
Reply to
#51413
Reply to #51415
×
Subject
Body
Reply To Message #51415 > ありがとうございました。 > --cp932 で変換した後にさらに -e で EUC にしようかと思いましたが、--oc=CP51932 でもよいのでしょうか。
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel
RE: 円記号(U+00a5)の変換 (2010-06-19 23:18 by
naruse
#51416)
Reply
Create ticket
Windows風にシフトJISからEUCにしたい場合でしたら、
--ic=CP932 --oc=CP51932 がよいですね
Reply to
#51415
Reply to #51416
×
Subject
Body
Reply To Message #51416 > Windows風にシフトJISからEUCにしたい場合でしたら、 > --ic=CP932 --oc=CP51932 がよいですね
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel
RE: 円記号(U+00a5)の変換 (2010-06-20 00:04 by
Anonymous
#51419)
Reply
Create ticket
やりたいことは、文字コードが不明なテキスト(たくさん)をバッチで処理して、ISO-2022-JP で定義されるコードに収まっている EUC に統一することです。
今まで教えていただいたことをもとにすると
-I --oc=CP51932
で目的は達成できそうですね。
ところで、CP932 や CP51932 を指定しなければ、U+00a5 が区点コード 0179 の全角の円記号に変換されるのはどうしてなのでしょうか。
Reply to
#51416
Reply to #51419
×
Subject
Body
Reply To Message #51419 > やりたいことは、文字コードが不明なテキスト(たくさん)をバッチで処理して、ISO-2022-JP で定義されるコードに収まっている EUC に統一することです。 > 今まで教えていただいたことをもとにすると > -I --oc=CP51932 > で目的は達成できそうですね。 > > ところで、CP932 や CP51932 を指定しなければ、U+00a5 が区点コード 0179 の全角の円記号に変換されるのはどうしてなのでしょうか。
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel
RE: 円記号(U+00a5)の変換 (2010-06-20 04:56 by
naruse
#51425)
Reply
Create ticket
CP932などを指定しなかった場合はJIS風の変換になります。
また、nkfでは0x00-0x7Fの範囲は常にASCIIであると仮定します。
結果、U+00A5はJIS X 0208の円記号、つまり全角円記号になります。
などと理屈はつけられますが、端的に言えば昔そうなってて、
今も互換性のためにそのままになっている、というのが本質ですね。
Reply to
#51419
Reply to #51425
×
Subject
Body
Reply To Message #51425 > CP932などを指定しなかった場合はJIS風の変換になります。 > また、nkfでは0x00-0x7Fの範囲は常にASCIIであると仮定します。 > 結果、U+00A5はJIS X 0208の円記号、つまり全角円記号になります。 > > などと理屈はつけられますが、端的に言えば昔そうなってて、 > 今も互換性のためにそのままになっている、というのが本質ですね。
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel
RE: 円記号(U+00a5)の変換 (2010-06-20 23:01 by
Anonymous
#51444)
Reply
Create ticket
どうもありがとうございました。勉強になりました。
Reply to
#51425
Reply to #51444
×
Subject
Body
Reply To Message #51444 > どうもありがとうございました。勉強になりました。
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel