# Which characters within a string need to be escaped in Icinga's configs?

**URL:** <https://community.icinga.com/t/which-characters-within-a-string-need-to-be-escaped-in-icingas-configs/6567>\
**Category:** Icinga 2\
**Created:** [January 28, 2021, 9:37am UTC](https://community.icinga.com/t/which-characters-within-a-string-need-to-be-escaped-in-icingas-configs/6567 "2021-01-28T09:37:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbodky](https://community.icinga.com/user_avatar/community.icinga.com/dbodky/32/4988_2.png) [@dbodky](https://community.icinga.com/u/dbodky)\
**Post date:** [January 28, 2021, 9:37am UTC](https://community.icinga.com/t/which-characters-within-a-string-need-to-be-escaped-in-icingas-configs/6567/1 "2021-01-28T09:37:11Z")

</div>

Good morning folks,

I am currently writing a small script for easier deployment of agents and satellites within our intranet and stumbled across a small problem regarding our API-passwords, which contain a lot of special characters such as ‘$’ (which needs to be escaped with another ‘$’).

When correcting this, I thought about other characters which might need to be escaped, but could not find any information in the documentation.

Are there other characters I need to take care of when writing to config files?

Best regards,  
Daniel

---

<div class="post-metadata">

**Author:** ![theFeu](https://community.icinga.com/user_avatar/community.icinga.com/thefeu/32/7277_2.png) [@theFeu](https://community.icinga.com/u/theFeu)\
**Post date:** [January 29, 2021, 11:44am UTC](https://community.icinga.com/t/which-characters-within-a-string-need-to-be-escaped-in-icingas-configs/6567/2 "2021-01-29T11:44:55Z")

</div>

Hello there!  
I found this bit here in our documentation: [Language Reference - Icinga 2](https://icinga.com/docs/icinga-2/snapshot/doc/17-language-reference/#string-literals-escape-sequences)

It doesn’t explicitly mention the $$, as it is for macros, but you figured that one out already 🙂

Afaik this is all there is 🙂

---

<div class="post-metadata">

**Author:** ![dbodky](https://community.icinga.com/user_avatar/community.icinga.com/dbodky/32/4988_2.png) [@dbodky](https://community.icinga.com/u/dbodky)\
**Post date:** [February 3, 2021, 10:05am UTC](https://community.icinga.com/t/which-characters-within-a-string-need-to-be-escaped-in-icingas-configs/6567/3 "2021-02-03T10:05:30Z")

</div>

Hey Feu,

thank you very much, don’t know how this part of the documentation slipped my attention 😃
