Skip to content

Commit

Permalink
New: エンコーディング名による文字コードの設定
Browse files Browse the repository at this point in the history
[patchunicode:#726]
ファイル中の以下のような文字列からエンコードを検出できるようにします。
<?xml encoding="EUC-JP" ?>
<meta http-equiv="Content-Type" content="text/html; Charset=Shift_JIS">
<meta charset="Shift_JIS">
# coding:utf-8


git-svn-id: https://svn.code.sf.net/p/sakura-editor/code/sakura/trunk2@3840 f7ce1907-e4c7-47ca-9f76-12c87ed2c91c
  • Loading branch information
moca_skr committed Oct 23, 2014
1 parent f28f25c commit d2311e8
Show file tree
Hide file tree
Showing 3 changed files with 426 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sakura_core/charset/CCodeMediator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ ECodeType CCodeMediator::CheckKanjiCode( CESI* pcesi )
if( pcesi == NULL ){
return CODE_DEFAULT;
}
if( pcesi->GetMetaName() != CODE_NONE ){
return pcesi->GetMetaName();
}
nret = DetectUnicode( pcesi );
if( nret != CODE_NONE && pcesi->GetStatus() != ESI_NODETECTED ){
return nret;
Expand Down
Loading

0 comments on commit d2311e8

Please sign in to comment.