[jbosstools-issues] [JBoss JIRA] (JBIDE-9937) SaveAs could not be completed due to issue with character encoding

Victor Rubezhny (Commented) (JIRA) jira-events at lists.jboss.org
Wed Nov 2 11:59:46 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639325#comment-12639325 ] 

Victor Rubezhny commented on JBIDE-9937:
----------------------------------------

IMHO, It's not normal to use ISO Latin-1 to edit the texts which is actually has UTF-8 encoding. The Java char is actually a single 16-bit Unicode character, so it's possible to insert (paste) any unicode characters into a text has being edited, but when the text is to be saved it has to be converted to the specified encoding. 
This means that if you have ISO Latin-1 encoding specified for the editor and inserting a chars like "פותחת מתקן מחקר חדש לקידום קיימא", then the editor should always ask you to save the page in UTF-8 encoding (these characters are 16-bits wide while ISO Latin-1 defines 8-bit wide character set).

Vitaly, does "jspx.png dialog" occur always when you press "Save" in your editor (I mean "Save", not "Save As")?

If not then VPE editor probably overrides somehow the preferences specified above. 
                
> SaveAs could not be completed due to issue with character encoding
> ------------------------------------------------------------------
>
>                 Key: JBIDE-9937
>                 URL: https://issues.jboss.org/browse/JBIDE-9937
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: UpStream
>    Affects Versions: 3.3.0.M4
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Victor Rubezhny
>             Fix For: 3.3.x
>
>         Attachments: example.zip, java-save.png, jspx.png, screenshot-1.jpg
>
>
> 1) open some jspx page in 1252 encoding
> 2) write something in Russian
> 3) try to save as new jspx page
> 4) see error dialog !screenshot-1.jpg|thumbnail!
> should propose to save in UTF

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list