Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
speedgoose
· 2w ago · 0 comments
But can the attacker specify the encoding in rails? It's not like UTF-8 or GTFO?
Comments
[–]
CER10TY
2w 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
[–]
bloak
2w ago
So you have to convert ISO-2022-JP, for example? That sounds like a disaster waiting to happen.
[–]
lmz
2w ago
Clients have to do the same with server responses.
[–]
roer
2w ago
Relevant article about that here:
https://www.sonarsource.com/blog/encoding-differentials-why-...
Browsers stopped auto-detecting ISO-2022-JP for this reason.