ini icon indicating copy to clipboard operation
ini copied to clipboard

Parsing special characters, ex: # number signs

Open digitaldavenyc opened this issue 10 years ago • 2 comments

When parsing values like 6#G222 ini parser ignores all values after #. Values like this are used between multiple languages and needs to be able parse password values.

[db]
user = admin
password = 6#G222@!ds9DlA0492SlL82

digitaldavenyc avatar Jul 28 '15 19:07 digitaldavenyc

I also facing this problem. I have a value like sed -i s/^\(server .*iburst\)/#\1/' /etc/ntp.conf. But the values after # is truncated. It will be really helpful if this is fixed are or if there is any workaround.

dpmramesh avatar Dec 28 '16 08:12 dpmramesh

You need to quote # and ; - since they introduce comments. So the following works:

[db]
user = admin
password = 6\#G222@!ds9DlA0492SlL82

It's a little bit unexpected, because you normally don't have inline comments with ini files.

svrnm avatar Mar 08 '17 16:03 svrnm