[JAVA] Does the escape sequence (\) not work? (for Mac)

Does the escape sequence () not work? (for Mac)

Hello, I'm Myouga-Maker This is the first post There is an image that cold days continued in early April. Maybe some of you are trying new things in the new semester or going on to higher education? (I am one of them) I will write down the problem that occurred at that time as a memo

Problems that occurred when I started studying Java

Well, everything started from the basics, so I started with the basic sentences.

System.out.println("My favorire symbol is double quotes(¥"). ");

__ Are? __ ** Did you get an error? ** By the way, I'm using Eclipse4_7_1 on Mac I should have written the code according to the textbook, but an error was spit out and I was confused

Problems with Unicode

When I looked up why, the answer was on the Yen and Yuyuan Wiki. [Unicode problem (yen and yuan problem)](https://ja.wikipedia.org/wiki/yen symbol #Unicode problem (yen and yuan problem)) Apparently, \ was not the Unicode U + 005C , but the U + 00A5 backs and yuan .

What happened after all

The backslash itself can be issued with the alt + \ key. However, if you don't want to press alt each time, you can change it from \ to \ in the settings (on Mac). Open System Preferences on your Mac System Preferences-> Language & Region-> "Keyboard" Preferences ...-> Characters to enter with the "" key:
If you change to, you will be able to type . By the way, even with this setting, if you press the alt + \ key, \ will appear. I did this.

I wonder if such a problem does not occur with windows? Is it a problem with an unfamiliar Mac? Are there any of you who have had similar problems? If you have any other solutions, please leave a comment.

Recommended Posts

Does the escape sequence (\) not work? (for Mac)
Sidekiq-limit_fetch does not work
Note: Memory Analyzer does not work on Mac OS
When Docker for Mac 2.4.0.0 does not reflect file changes
[Rails] Solving the problem that session timeout does not work
Java Integer comparison (==) does not work correctly
About the procedure for java to work
eclipse tab width change does not work.
must not return in the for statement
[Help] Docker for windows 2.3.0.4 without login Service startup method does not work [Help]
When the form such as Select of Materialize does not work properly
If the ctrl + shortcut does not work in Eclipse, disabling welcome may help
When @Transactional of Spring Boot does not work
The public key for jenkins-2.249.1-1.1.noarch.rpm is not installed
@BeforeStep does not work in Tasklet of spring-batch
Does not recognize the library when implementing jcaptcha
[Railways] Railways does not work when the RubyMine project root is other than the Rails root directory.
[Kotlin] The mapping library by reflection based on Java basically does not work with Kotlin.
What to do if the JSONHint annotation does not work with lombok and JSONIC
"Do not show again" check does not work in the warning dialog when starting applet
ConcurrentHashMap does not allow nulls for key and value
After introducing Better_errors, the error screen does not change
[Note] When the page access speed does not increase
When the vagrant command doesn't work for some reason
PATH does not pass ... The cause is the character code
Hivernate Validator does not work in WAS Liberty environment
When the server does not start with rails s
Does .dockerignore not work? It's written differently from .gitignore!
A memo when the incoming number acquisition using Broadcast Receiver does not work on Android 9/10
For those who have deleted a document in Firestore but the subcollection does not disappear