Y
Hacker News
new
|
ask
|
show
|
jobs
by
speedgoose
12 days ago
But can the attacker specify the encoding in rails? It's not like UTF-8 or GTFO?
1 comments
CER10TY
12 days ago
You can freely specify the encoding when sending multipart/form-data POST since Rails respects the charset attribute in Content-Type, eg Content-Type: text/plain; charset=Windows-1252
link
bloak
12 days ago
So you have to convert ISO-2022-JP, for example? That sounds like a disaster waiting to happen.
link
lmz
12 days ago
Clients have to do the same with server responses.
link
roer
12 days ago
Relevant article about that here:
https://www.sonarsource.com/blog/encoding-differentials-why-...
Browsers stopped auto-detecting ISO-2022-JP for this reason.
link