AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why some .txt files cannot be displayed correctly?

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
akyahoo



Joined: 10 Nov 2009
Posts: 24
Location: Beijing, China

PostPosted: Thu Nov 19, 2009 3:27 am    Post subject: Why some .txt files cannot be displayed correctly? Reply with quote

If Codepage recognition: is set to None, then AkelPad can detect (subject to sufficient buffer size) only Unicode files:

with BOM (byte order mark) present in file
UTF-16LE or UTF-16BE without BOM present.
The Buffer: value is the number of characters to test in the recognition algorithm. This must be set to a sufficient number to discern the codepage using the internal algorithm. In order to correctly determine the codepage or Unicode type, this minimum buffer size also varies somewhat with the size of file.

==========================================================


I have checked this manual. The CodePage Recognizion of my AlekPad is set to None.

Sometimes, it cannot display Chinese charaters correctly. Most Chinese characters use GB2312, GBK or BIG5 as the encoding, not UTF-8. Rolling Eyes


Is it this problem? What should I do if AlekPad cannot display characters? Question
Back to top
View user's profile Send private message Visit poster's website
Surveyor



Joined: 08 Feb 2008
Posts: 146
Location: British Columbia, Canada

PostPosted: Thu Nov 19, 2009 4:40 pm    Post subject: Reply with quote

akyahoo wrote:
Sometimes, it cannot display Chinese charaters correctly.

I have not checked with Instructor on this topic, but perhaps you already know that Windows contains (depending on your installation) MANY codepages. Often codepages contain the same characters as several others, with some unique characters. It is possible that your text files do not use enough characters unique to the codepage, and so the AkelPad algorithm cannot make the determination.

If you are not getting the correct codepage, perhaps it is better to load the file using the codepage that you know is correct. If you enable the option "Options/Settings.../Registry/Remember code page", AkelPad tries to keep track of the codepage used for each file, but only for the files on the "Recent files" list; this may help a little.

I'm not sure that this behavior is a failing in AkelPad - it probably just points out the complexities in language.

Also, the "Options/Settings.../General" page contains settings for a default codepage - if you always work in the same codepage, use that as a default.
Back to top
View user's profile Send private message Send e-mail
infimum



Joined: 02 Mar 2008
Posts: 26

PostPosted: Thu Nov 19, 2009 5:29 pm    Post subject: Re: Why some .txt files cannot be displayed correctly? Reply with quote

akyahoo wrote:
I have checked this manual. The CodePage Recognizion of my AlekPad is set to None.

Sometimes, it cannot display Chinese charaters correctly. Most Chinese characters use GB2312, GBK or BIG5 as the encoding, not UTF-8. Rolling Eyes


Is it this problem? What should I do if AlekPad cannot display characters? Question

AkelPad doesn't automatically recognize those encodings of Chinese.

Automatic recognition actually involves a very intricate algorithm. Considering how many encodings there are, it's too much to ask of a free program. That's one of the reasons they invented a thing called unicode.

Actually, 100% accuracy is almost impossible. Many shareware programs aren't good either in this regard. It's rare to find programmers who are well versed in both programming and natural languages Wink
Back to top
View user's profile Send private message
akyahoo



Joined: 10 Nov 2009
Posts: 24
Location: Beijing, China

PostPosted: Fri Nov 20, 2009 1:45 pm    Post subject: Reply with quote

Thank you.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group