Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/694305e8-d7f8-800e-a8d8-fbf410be6545
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: 結論から言うと: === 結論から言うと: 半角コード <code>0x5C</code>(キーボードの「\」キー)としては 👉「バックスラッシュ」しかありません。 ただし、表示や呼び名が違うだけで「別物に見える」ケースがある、というのが正確です。 ==== ### ==== * 見た目:¥ * 正体:\(ASCII 0x5C) * 原因:日本語フォントの仕様 👉 文字としてはバックスラッシュそのもの 👉 Unicode の「円記号(U+00A5)」とは別 ===== - 見た目:₩ ===== * Unicode:U+20A9 * 0x5C ではない * 完全に別文字 ❌ \ の代替にはならない ==== | | | ==== | --- | --- | | | | | | | | | | ※「円マーク」は正式名ではない ==== | | | | ==== | --- | --- | --- | | | | | | | | | | | | | 👉 0x5C = U+005C = バックスラッシュのみ ==== 理由は3つだけ: ==== # 日本語フォントが <code>\</code> を <code>¥</code> と描画する # 俗称で「円マーク」と呼ばれてきた # コピー&ペーストで別Unicodeに化ける ==== - プログラム・パス・正規表現 👉 常に <code>\</code> だけが正解 ==== * ¥ に見えても気にしない * 本当に ¥(U+00A5)を使うと バグる ===== - 別の文字は存在しない ===== * あるのはバックスラッシュだけ * 違いは「見た目」と「誤解」 この話、PowerShell・バッチ・JSON・正規表現での「事故例」も山ほどあるけど、そこ行く?
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)