Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Question about substitution and spaces *DELETED*
dlsoderberg
Post deleted by dlsoderberg
Find more posts tagged with
Comments
Dwayne
You're asking the wrong question.
The solution isn't to remove the spaces - it's to change the encoding. That's an artifact of an encoding error. Set the <meta> tag in your generated page to indicate that the content is UTF-8 encoded, and I suspect you won't see those problems any more.
--
Current project: TS 5.5.2/6.1 W2K
Migrateduser
I agree with Dwayne, but your regex should read:
s/\s{2}(\s*)/ /g;
This replaces all whitespace characters of length at least 2 with two non-breaking spaces.
Dave