Using special chars in files |
|
Try to specify correct character encoding in open dialog ("File Encoding" combobox).
|
||||||||||||
|
Using special chars in files |
|
This would implicate not using the project list to open a file. This is no real solution. Also the question remains: what is the correct encoding for files previously created in plain text editors such as Programmers Notepad and others on windows systems.
|
||||||||||||
|
|
That would depend on your system and in case of Windows and on your country. Standard english windows codepage is windows-1252 (aka cp-1252). If you use other language than english in Europe it is possible that your Windows natively use windows-1251 (aka cp-1251) or windows-1252 (aka cp-1252). I suggest you to go to wikipedia and search for the codepages mentioned, there is a list of countries, which uses which encoding.
To answer your question, documents created on Windows using notepad (or similar editing tool) is natively in one of the codepages above. If you select that codepage when opening the file in phpEd, it should open correctly then. |
||||||||||||
|
Using special chars in files |
|
Many thanks for this answer.
Meanwhile I've found a solution to avoid this problem at all times. I write all code using html entities and use the functions html_entity_decode() and htmlentities() whenever needed. I think this is the more bullet-proof solution. Many thanks, Ernest |
||||||||||||
|
|
Sure it might be a solution, but writing everithing using entities is a tiresome job. Also using htmlentities requires also proper character set to be selected, otherwise the encoding would be corrupted anyway. I would suggest to use UTF-8 (for non-Japanese, Chinese, etc. text) , which covers most problems and is widely used.
|
||||||||||||
|
Using special chars in files |
|
||
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