I want to set the character code by specifying a part of the file name in Eclipse.

Asked 2 years ago, Updated 2 years ago, 52 views

Please tell me how to set it up.
Except for the file name I want to specify, it is UTF-8, but I would like to set only xhtml for feature phones to Shift-JIS.

It looks like this

  • "*Hoge*.xhtml"is "Shift-JIS"
  • Other "*.xhtml" is "UTF-8"
  • Files other than ".xhtml" are also "UTF-8"

Set "UTF-8" for the entire workspace and project, exclude "*Hoge*.xhtml", and set "Shift-JIS"
I don't mind if it's the same (I don't know if I can do it or not).

I understand that only extensions can be configured with the content type of the configuration.
How to set character and line feed codes in Eclipse

  • environment
    • Eclipse:Kepler Service Release 2 Build id:20140224-0627
    • OS:Windows 7
  • Eclipse:Kepler Service Release 2 Build id:20140224-0627
  • OS:Windows 7

eclipse

2022-09-30 12:09

1 Answers

Right-click the file and use the per-file properties to change the character code for each file.
Enter a description of the image here

How about setting the entire character code with the most characters and setting the rest individually on this screen?


2022-09-30 12:09

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.