fcl-web: change TResponse.Content to RawByteString
Original Reporter info from Mantis: Simon Ameis @SAmeis
-
Reporter name: Simon Ameis
Original Reporter info from Mantis: Simon Ameis @SAmeis
- Reporter name: Simon Ameis
Description:
When passing a UTF-8 encoded string to TRespnse.Content, it get's converted to default codepage possibly loosing unicode characters.
After changing property and parameter types of Content, Getcontent and SetContent to RawByteString, the value is processed correctly.
Steps to reproduce:
&LtPos;ol>&LtPos;li>Create a HTTP application (in my case FastCGI)&LtPos;/li>
&LtPos;li>Add a TJSONRPCModule&LtPos;/li>
&LtPos;li>Add a TJSONRPCHandler&LtPos;/li>
&LtPos;li>Add an &LtPos;em>OnExecute&LtPos;/em> event handler with &LtPos;pre>Res := TJSONObject.Create(['n', 'ß']);&LtPos;/pre>&LtPos;/li>
&LtPos;li>Save file in UTF8 and run&LtPos;/li>
&LtPos;/ol>
Mantis conversion info:
- Mantis ID: 35989
- OS: Windows 7, 64 bit
- OS Build: 6.1 SP 1
- Build: 42449
- Platform: Desktop PC
- Fixed in version: 3.3.1
- Fixed in revision: 42767 (#6a3530f6)
- Target version: 3.2.0