question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Config escape character with special characters

See original GitHub issue

Describe the bug

If you set a property with special characters such as >§°@powefnjvnvfdv% using the path q/dev:

image

it will be set into the properties file like that: quarkus.mailer.password=>§°@powefnjvnvfdv%

If we set this property into the file directly using escape char: quarkus.mailer.password=>\§\°@powefnjvnvfdv% It won’t be shown correctly: image

I searched a guide to use special char within the properties file but I don’t see anything. Is there a specific way to use special characters using the escape char?

Expected behavior

I expect that I can use a special character such as § ° etc. using the char \ or a guide that shows how to use them correctly. Also, I noticed that in order to use the special char $ I have to insert two escape chars. Can anyone help me to find a solution for special characters inserted in a variable into the properties file?

Actual behavior

Some special chars require the char  before, some require an escape char, others require two escape chars, but there’s no guide for using them correctly

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

11

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.7.1-final

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
radcortezcommented, Mar 1, 2022

I’ll have a look.

0reactions
radcortezcommented, Mar 7, 2022

Thanks. I’ll consider that the issue is caused by IntelliJ configuration, and there is nothing we can do on our side so I’m closing the issue. Please, reopen if you disagree.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Escape & in App.config - Stack Overflow
Escape the ampersand by using & in place of the &. As an FYI, see here for further characters: What characters do I...
Read more >
Escape XML Special Character in web.config - Google Sites
Escape XML Special Character in web.config. The web.config is in XML format. You can escape the five special characters: & ? & (ampersand,...
Read more >
How to put a set of special characters as a key value under ...
I want to put set of special characters as a key value under appsettings tag in web.config file. Special characters to set as...
Read more >
Escape of special characters such as "@" in Configuration ...
Hi All,. I'm hopeful that there is an easy way to be able to treat special characters (specifically @) as text within an...
Read more >
How to escape special characters in SC Config command
SC.exe (like many DOS exe's) may be handling the parameter values all by itself, even after all the other quoting and special character...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found