#3054: CKPackager: special characters are incorrectly(?) parsed by
scriptcompressor
----------------------+-----------------------------------------------------
  Reporter:  wwalc    |       Owner:                   
      Type:  Bug      |      Status:  closed           
  Priority:  Normal   |   Milestone:  CKEditor 3.0     
 Component:  General  |     Version:  CKEditor 3.0 Beta
Resolution:  invalid  |    Keywords:                   
----------------------+-----------------------------------------------------
Changes (by fredck):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 That's not intentional, but a know issue. We'll never be able to have all
 escape sequences in that table.

 The fact is that the Rhino parser transforms the string escape sequences
 into their real chars. In the case of \r\n this is a big problem, as it
 breaks the code:

 {{{
 BEFORE:
 "Sample\r\nText"

 AFTER:
 "Sample
 Text"
 }}}

 So we have to have the \r\n sequence included back. I've only included
 other escape sequences there because those are the standard ECMA
 sequences, not because they are really needed.

 For other escape sequences, this is not a big issue, as long as the file
 gets saved as UTF-8. The "pure" character will just be there into the
 string, which is ok.

 Please correct me if I'm wrong, reopening this ticket.

 If for any reason we want to have only ASCII chars into the output files,
 then we should implement a different solution, which would seek for any
 non ASCII char and replace it with the proper escape sequence. But, we
 should avoid it in our case, as it would definitely produce big and
 unmanageable language files.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3054#comment:1>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to