#10976 closed Bug (invalid)
Submitted data encoded incorrect when htmlEncodeOutput = true
| Reported by: | Thomas C. Thomsen | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | |
| Keywords: | Cc: |
Description
It seems that the submitted data is not always encoded correct when htmlEncodeOutput is set to true.
For example < is encoded into < which is correct, where as æ is converted into aelig; which is not correct (notice the missing prefix & in aelig;).
Change History (6)
comment:1 Changed 12 years ago by
| Status: | new → pending |
|---|
comment:2 Changed 12 years ago by
I am testing up against asp.net app and æ is encoded into aelig; - could you try to submit "foo bar æøå" and post the submitted data?
comment:3 Changed 12 years ago by
<p>foo bar &aelig;&oslash;&aring;</p>
I'll ask my colleague if he can test it on ASP.NET. But it definitely works well on PHP.
comment:4 Changed 12 years ago by
Thanks a lot for your help.
I now realize that my string is being escaped twice (æ becomes &aelig;).
I just do a replace("&", "&") and all is well. Thanks again
comment:5 Changed 12 years ago by
| Resolution: | → invalid |
|---|---|
| Status: | pending → closed |
| Version: | 4.2.1 |
comment:6 Changed 12 years ago by
I now realize that my string is being escaped twice (æ becomes &aelig;).
Could you explain in more detail?
- Which editor you use - do you use CKEditor asp.net or CKEditor JS only in ASP.net application
- Why string is escaped twice. What escapes it second time? You have given JS method replace("&", "&") as solution. Is there another JS escaping this HTML?

Using replacebycode.html sample (with htmlEncodeOutput option added there), I've got following when submitting data:
Which is correct.
How do you test it?