ruby on rails - How do I properly encode ł and the like? -
i have legacy database imported sqlite, lots of fields containing url-encoded strings. legacy database set latin1 encoding, , has lot of polish characters encoded this
"b%26%23322%3bad+zapisu+%2d+powinno+by%26%23263%3b+brak"
which after cgi::unescape gives
"bład zapisu - powinno być brak"
i tried enforcing iso-8859-1 , cp1250 on strings encode them utf-8, had no success: still end escaped polish characters. i’ve been researching on 2 days , still can’t find solution. please me on one?
it has nothing utf-8 encoding because it's html encoding. need this
cgi::unescapehtml(cgi::unescape("b%26%23322%3bad+zapisu+%2d+powinno+by%26%23263%3b+brak"))
Comments
Post a Comment