Link to home
Start Free TrialLog in
Avatar of Sathish David  Kumar N
Sathish David Kumar NFlag for India

asked on

how to use copyright symbol and trad mark symbol in rest api call

how to use copyright symbol and trad mark symbol in rest api call (I need to pass  one of the Json parameter )

I need to get it in Java code and save the values in DB .

Any one have idea on this ??
Avatar of ste5an
ste5an
Flag of Germany image

hmm, by making yourself familiar with charsets and Unicode?

Just assign it to the parameter.
You may need to escape them first then send them as a parameter, e.g :

© will be \u00A9

Try it in https://www.freeformatter.com/json-escape.html
@Zakaria: This is normally not necessary. Cause JSON supports Unicode as primary charset.

A string is a sequence of zero or more Unicode characters, wrapped in double quotes, using backslash escapes. [..]
https://json.org/

So it should work smoothly without any extra effort..
Avatar of Sathish David  Kumar N

ASKER

I am using com.fasterxml.jackson.core.JsonGenrator and i enable ansii escape but while enter © in JSOn string its giving error
ASKER CERTIFIED SOLUTION
Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial