cruisecontrol config.xml special characters svnbootstrapper - character

I have a line like :
<svnbootstrapper LocalWorkingCopy="${projects.dir}/${project.name}" Password="4udr=qudafe$h$&e4Rub" Username="televic-education" />
in my config.xml. Because of special characters in the Password cruisecontrol service won't start. Is there a way to solve this?
Maybe with setting a property? Or escaping characters?
thx, Lieven Cardoen

Replace & with & in the password attribute. I don't know if that's the problem, but it's definitely a problem.

Related

How to remove a mongo collection name with a special character �?

Accidentally created a collection with "�" in its name. Now i'm looking for a way to delete it.
P.s. I tried db['�'].drop() and that did not work out for me.
Figured it out myself. db['\ufffd'].drop() worked for me. Converting "�" to unicode solved the problem. Hope someone finds it useful. This should work for other special characters as well.

special character in squarespace (text block)

I wish to use a special character in squarespace 6, using a template with a text block.... how?
I tried with
→
to include →, but didnt work. I see the code in plain text in the site.
I talked to the squarespace support and they told me that this is not possible. The best way is to literary copy and paste it into the text block.
you could use this ascii character in the code block, use
<p>→</p>
→
in the code block and it should solve the problem http://help.squarespace.com/guides/about-the-code-block

Sitecore: Valid item names

How do I expand the list of valid characters in item names, to include æøåÆØÅ?
As per default the valid characters seems to be defined by this rule in web.config:
<setting name="ItemNameValidation" value="^[\w\*\$][\w\s\-\$]*(\(\d{1,}\)){0,1}$" />
changing the regex to :
<setting name="ItemNameValidation" value="^[\wæøåÆØÅ\*\$][\wæøåÆØÅ\s\-\$]*(\(\d{1,}\)){0,1}$" />
Should in theory allow the characters, but that just "kills" the sitecore.
Edit:
A regex that allows dots, are working perfectly like this:
<setting name="ItemNameValidation" value="^[\w\*\$][\w\.\s\-\$]*(\(\d{1,}\)){0,1}$" />
So I am allowed to change some aspects of it, just not for the æøå characters?!?!?
Note:
- Using æøå in item names is for some reason possible from the "Page Editor", when creating and saving new content items, but it is not possible to do the same from the "Content Editor"!
- We are using SC v6.6.0 (rev. 120918).
Cause of error was not saving the file as UTF-8
Make sure your config file is saved as "UTF-8"
A bit late, but adding as an answer :)
Cause of error was not saving the file as UTF-8

forcing single quotes on XMLout()

Is there an easy way to force XMLout() of XML::Simple to use single quotes instead of double quotes for the attributes? I didn't find an according option (or I missed it...).
<Object Alias="12345" Inherit="1" Position="0">
should be
<Object Alias='12345' Inherit='1' Position='0'>
It's just a matter of conventions, no special reason for that. Also there won't be any conflict with inner quotes because they are all escaped.
why you want to do this? i dunno any good reason where it can be useful?! you can print your xml file with xml out and open it again doing while(<>){s/\"/\'/g;}

(ASP.NET) Can you do a String.Format on a web.config key/value?

This might be a god awful question but I'm not sure why it won't let me do this.
I have a URL I need to store in Web.config, which has a dynamic parameter pulled from the web page.
So I want to store:
<add key="TestURL"
value="https://test/subscribe?msisdn={0}&code=1&pass=2"/>
It doesn't let me do this. After the {0} it errors at the "&".
Can anyone let me know what I'm doing wrong here? Do I need to escape the character?
Try this instead,
<add key="TestURL" value="https://test/subscribe?msisdn={0}&code=1&pass=2"/>
Notice the escaped ampersands.
Config files are XML, and as such, require XML entities to be escaped. The problem isn't your {0} for use in formatting, it's the & that must be escaped as
&