JSON Encoding

  

Hi ,

could anyone please let me know what is the default encoding used for JSON text?

Is it UTF-8?

Appreciate your help.



Thanks

Sneha Sawant

Hi Sneha,


Yes,  it's UTF-8.


Regards,
João Rosado

João Rosado wrote:

Hi Sneha,


Yes,  it's UTF-8.


Regards,
João Rosado

Thanks João Rosado,For your reply. 

I am entering Japanese text from the application text box it getting saved correctly in the database however  on JSON file its coming as ???? for all foreign languages and for text like \“tab”\  On JSON viewer data is  like this \?tab?\.

Could you please help me out?

Appreciate your help.


Thanks and regards,

Sneha Sawant

Can you post a sample module that replicates the issue?


Regards,
João Rosado

Solution

João Rosado wrote:

Can you post a sample module that replicates the issue?


Regards,
João Rosado

Hi João Rosado,

Thank you very much for your help, However I have found the root cause, Though JSON was encoding into UTF-8, I was trying to convert the JSON output text to binary and the Binary conversion function by default was encoded in ascii. I have exclusively changed the encoding to UTF-8 in TextToBinary() and it worked fine for me.


Thanks and regards,
Sneha Sawant
Solution