File Encoding mixed up |
Site Admin
|
Encoding works per files.
If you open a file that was NEVER open in PhpED, the IDE will try to use encoding indications (such as BOM or charset meta in html), and if they are not found, it will fallback to the project setting. Note, that you can set different encodings in different project directories. If you open a file that was PREVIOUSLY open in PhpED, the IDE will use encoding that was used last time. In your case -- if you opened or created a file in UTF8, IDE will open it in UTF8 regardless what you set in the project. |
||||||||||||
_________________ The PHP IDE team |
|
In this case i've created a file outside PHPEd.
So, there is no way to avoid this problem? The thing is, it saves the file correctly in UTF8 but PHPEd shows it with ISO - So PHPEd know the file format because it can save it, but it doesn't display correctly. When i do the same thing in for example Notepad++, this works fine and file encodings are always match perfectly, regardless if you have opened/created the file before with NP++. In my opinion this is a bug, isn't it? The use case is, and i'm sure that this is very often like so: 1. You have a big, older, project, mixed up with different file encoding. 2. You just start coding in it with PHPEd - No chance to find out in PHPEd which file encoding the file really have? |
||||||||||||
|
Site Admin
|
There are two ways to change encoding without changing content of the file:
-open file using File->Open and pick correct encoding in the dialog -change encoding in the status bar, then re-open the file (w/o saving it) |
||||||||||||
_________________ The PHP IDE team |
|
Both suggestions work but for me that is just a workaround.
If you have many files in your projects it's a little bit annoying when nusphere show a wrong file encoding. I would be very happy to see a better file encoding mechanism that show the correct file encoding without manual overrides. It's possible, that show us Notepad++ It's also open source so maybe get some ideas from that source?! |
||||||||||||
|
File Encoding mixed up |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by