Quantcast
Viewing all articles
Browse latest Browse all 21760

Re: binary data in a form field gets changed

DonPedroElBuenoI wrote:

 

I made one more observation which is interesting:

After examining the differences more closely in a hex-editor I installed for that, i noticed that the difference is that all null-bytes (Hex 00) are changed to (Hex 20).

There seem to be no other differences between what is sent from the client and what I get in requestContent.

There you go. My instincts tell me it will come down to encoding. You said:

 

This is set in the CF Administrator:

 

Java File Encoding:    ISO8859_1

Java Default Locale:   en_US

JVM arguments:        -Dfile.encoding=ISO-8859-1

They say ISO-8859-1 is byte-preserving, but I wonder what will happen if, just for the sake of testing, you change the encoding to UTF-8.


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>