Characters in string, json

(Miha) #1


one question. Is there any way to remove this characters from json so that it will be represented in right way.



(Jay Poss) #2

Understanding how characters are stored in strings can be confusing.
See post I made earlier “Strings: Characters Clarified a Little”.
Don’t know what’s going on with your situation. Possibly input from non UTF-8 encoded source.

You can use strings.Map to remove the characters pretty easily. Look for some examples of how it works.
Notice that you return a negative value in the mapping func to remove characters.

(Miha) #3


It was my issue. In header there was wrong type :frowning:

Sorry for your time and thank you for help!

(Jay Poss) #4

No Problem. Glad you figured it out.