rejetto forum

Bugs with encoding apostrophe in URL

0 Members and 1 Guest are viewing this topic.

Offline anthonyiu

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
Hi,

I am using HFS 2.2e(154)
When I am trying to apply some template
I found that some characters like the space is encoded into %20
However, the encoding function does not apply on the apostrophe, i.e. into %27 (in the pic. below)



Encoding of apostrophes is vvvvv important to me because it clashes with Javascript when I use the template
Please do me this favour and fix this problem , thanks


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
use double quotes
var c="things"
instead of
var c='things'


Offline anthonyiu

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
use double quotes
var c="things"
instead of
var c='things'

Thanks for your suggestion :)
However, the Javascript is only one of the examples that I need to use %27 rather than a normal apostrophe..
so...is that possible to encode this string in the coming version, just like encoding the space?

Cheers ;D


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
sorry for being late.
i may put an option to encode extra chars.
for sure it won't be by default, because encoded chars are less readable, and thus undesired.
can you please report other non-javascript cases where you need this?