Hello, I have currency symbols stored by their HTM...
# announcements
n
Hello, I have currency symbols stored by their HTML codes, and need to convert them in kotlin to the corresponding currency symbol, so
$ -> $
- any standard library capable of doing this or do I need to build a map myself? Thanks!
m
24 is just the ascii code in hex right? I think you can just map it to
"\u0024"
.
h
Right, that's even easier.
n
Thanks guys! I'll try this 👍
m
There's
&nbsp
,
&gt
and so on as well though. It won't work with those.
n
luckily I just need to parse currency symbols, so it might work. either way I'll be able to build something. was hoping there would be something that just works out of the box