#13780 closed Bug (invalid)
language not UTF-8
Reported by: | Tomasz | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: | tjeziorski@… |
Description
Steps to reproduce
- go to http://ckeditor.com/demo#localization
- switch language to Turkish
- paste Turkish text "aşağıdaki Türkiye'nin" into editor
- switch to html view which is "Kaynak"
- you will see this text "<p>aşağıdaki Türkiye'nin</p>"
Expected result
i would assume it should be <p>aşağıdaki Türkiye'nin<p>
Actual result
<p>aşağıdaki Türkiye'nin</p>"
Other details (browser, OS, CKEditor version, installed plugins)
i'm using IE 9.
Change History (7)
comment:1 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.5.3 |
comment:2 Changed 9 years ago by
hi, i must be doing something wrong as when it looks like my language is set to "tr" but still getting this issues.
below are my settings. could you please take a look at them and point me into right direction?
<script type="text/javascript"><![CDATA[ window.CKEDITOR_BASEPATH='../../ckeditor/'; ]]></script> <script type="text/javascript" src="../../ckeditor/ckeditor.js?t=B37D54V"></script> <script type="text/javascript"><![CDATA[ CKEDITOR.replace('editor_html', {"entities":"true","filebrowserFlashBrowseUrl":"..\/..\/ckfinder\/ckfinder.html?type=Flash","entities_latin":"false","entities_turkish":"true","width":"100%","entities_processNumerical":"false","extraCss":"body{font-family:Arial, serif;font-size:17px}","language":"tr","pasteFromWordRemoveFontStyles":"false","filebrowserImageUploadUrl":"\/pcsauttr\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Images","filebrowserUploadUrl":"\/pcsauttr\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Files","height":"500","filebrowserFlashUploadUrl":"\/pcsauttr\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Flash","pasteFromWordRemoveStyles":"false","extraPlugins":"pastefromword,clipboard,dialog,dialogui","filebrowserImageBrowseUrl":"..\/..\/ckfinder\/ckfinder.html?type=Images","filebrowserBrowseUrl":"..\/..\/ckfinder\/ckfinder.html","toolbar":[['Source','Preview'],['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo'],['Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt'],['Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat'],[ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ],[ 'Link','Unlink','Anchor' ],['Image','Table','HorizontalRule','SpecialChar','PageBreak','Iframe'],['Styles','Format','Font','FontSize'],['TextColor','BGColor']],"skin":"kama"}); ]]></script>
comment:3 Changed 9 years ago by
Cc: | tjeziorski@… added |
---|
comment:4 Changed 9 years ago by
hi, i must be doing something wrong
Yep. I have to ld you to set entities to false while you have them set to true. Remove all the turkish, latin, and numerical properties for entities and use entities:false
. That way you will not see any entities.
comment:5 Changed 9 years ago by
Thanks a lot for such a quick response. I appreciate that.
I've followed your instructions and now object looks like this:
<script type="text/javascript"><![CDATA[ CKEDITOR.replace('editor_html', {"filebrowserFlashBrowseUrl":"..\/..\/ckfinder\/ckfinder.html?type=Flash","entities":"false","filebrowserUploadUrl":"\/pcsauttr\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Files","width":"100%","height":"500","filebrowserFlashUploadUrl":"\/pcsauttr\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Flash","pasteFromWordRemoveStyles":"true","extraPlugins":"pastefromword,clipboard,dialog,dialogui","extraCss":"body{font-family:Arial, serif;font-size:17px}","filebrowserImageBrowseUrl":"..\/..\/ckfinder\/ckfinder.html?type=Images","language":"tr","filebrowserBrowseUrl":"..\/..\/ckfinder\/ckfinder.html","toolbar":[['Source','Preview'],['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo'],['Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt'],['Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat'],[ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ],[ 'Link','Unlink','Anchor' ],['Image','Table','HorizontalRule','SpecialChar','PageBreak','Iframe'],['Styles','Format','Font','FontSize'],['TextColor','BGColor']],"pasteFromWordRemoveFontStyles":"false","skin":"kama","filebrowserImageUploadUrl":"\/pcsauttr\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Images"}); ]]></script>
I think we are getting closer as pasting this text " ilçelerinde ağır kayıplar bildirilmiştir " produces this html values: " <p>ilçelerinde ağır kayıplar bildirilmiştir</p> "
First word doesn't look right. Is there anything else I need to set?
comment:6 Changed 9 years ago by
I cannot reproduce that. I have used entities:false
plus I'm using UTF-8 and it is enough for me.
Perhaps you are not using UTF-8 after all or have something else that changes non-latin characters to entities.
comment:7 Changed 9 years ago by
In Firefox 41.0.1, you can paste from menu and describe format or source where you paste from, then its work. Use Unicode editor. By http://monasinha.com
What you are seeing are HTML entities.
Please see:
http://docs.ckeditor.com/#!/api/CKEDITOR.config
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-entities
http://www.freeformatter.com/html-entities.html
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-basicEntities
You can disable entities by setting this property to false: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-entities. Please note that it is highly unrecommended to disable basic entities http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-basicEntities