EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     Notification When Unicode File Contains Invalid Encoding
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
hannasm
Posted on: 10/16/2009 2:21 pm
Just popping in
Joined: 10/16/2009
From:
Posts: 2
Notification When Unicode File Contains Invalid Encoding
Recently i had an issue with an XML file, the creator of the file told me the encoding was UTF-8. The actual encoding was ANSI/Windows Codepage 1252. Emeditor automatically opened the file as UTF-8 (the status bar indicated "UTF-8 Without Signature").

The file contained (U+00C9) with it's ANSI encoding. Emeditor did not display this character.

I can only guess that this file was opened as UTF-8 because of the xml encoding declaration.

<?xml version="1.0" encoding="utf-8"?>


I would like a warning to be generated when opening the utf-8 encoded XML file containing an invalid code-point. It would also be useful for the incorrectly encoded characters to be displayed in the editor somehow, in the same places where they are encountered.

I am still using Emeditor 8.0, apologies if this has been implemented already.
Yutaka
Posted on: 10/30/2009 6:21 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2406
Re: Notification When Unicode File Contains Invalid Encoding
Quote:

hannasm wrote:
Recently i had an issue with an XML file, the creator of the file told me the encoding was UTF-8. The actual encoding was ANSI/Windows Codepage 1252. Emeditor automatically opened the file as UTF-8 (the status bar indicated "UTF-8 Without Signature").

The file contained (U+00C9) with it's ANSI encoding. Emeditor did not display this character.

I can only guess that this file was opened as UTF-8 because of the xml encoding declaration.

<?xml version="1.0" encoding="utf-8"?>


I would like a warning to be generated when opening the utf-8 encoded XML file containing an invalid code-point. It would also be useful for the incorrectly encoded characters to be displayed in the editor somehow, in the same places where they are encountered.

I am still using Emeditor 8.0, apologies if this has been implemented already.


I couldn't reproduce your issue. Can you send me a sample file to tech@emurasoft.com? I will try to reproduce your issue. Thank you!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文