On Mon, Jul 1, 2024 at 12:04 PM Hugh Myrie <hugh.my...@gmail.com> wrote:
>
> I am trying to preserve special characters (group separators and field 
> separators) when reading the request body from a POST request.
>
> When I do a dumpRequest I am able to see the special characters (Hex Format, 
> for example: \x1c or \x03). I am sending the data from the client as 
> text/plain.
>
> I have tried sending the data as JSON and using the decoder in Go. I have 
> also tried using Base64 and decoding in go accordingly. I have tried 
> json.unmarshal to decode the incoming JSON data. However, in every instance 
> the special characters are removed.
>
> I need the special characters to be preserved so I can send the data for 
> further processing. I need the special characters not the hexadecimal 
> representation.
>
> I am able to see the actual data being sent to the Go server. I also tried 
> encoding the data from the client side.
>
> Your help would be greatly appreciated.

Can you provide a reasonably small, but complete, example that
demonstrates the problem?

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVT0Yr%2ByZKbMJw0Q%3DKXP%3Desu45y%2BERidgWRXxu3vcJOMQ%40mail.gmail.com.

Reply via email to