Login  Register

RE: Posts going thru Gmail have funny  symbol

Posted by Coleen_Astalos on Jan 24, 2014; 8:34pm
URL: https://support.nabble.com/Posts-going-thru-Gmail-have-funny-A-symbol-tp7589092p7589239.html

Pedro,
I was able to strip off the  symbol (which is actually the non breaking space character & nbsp; ) in the "send_subscription_email" macro by changing the <html_part.html_part/> to this:
 <html_part.> 
    <n.regex_replace_all text="[n.local_node.html_part/]" pattern="\u00a0" replacement=" "/> 
 </html_part.> 

I had to play around a bit to figure what representation of that character would work (as there are multiple).  

This solution to strip off those characters is working for me at this point as that was the only funky character I was consistently seeing.

I don't think this is the "right" way to fix it as it only solves the problem for the   character.  Other characters above #127 that are not defined in us-ascii may still come across wrong since the encoding is being set in Nabble to us-ascii instead of utf-8.   It is interesting to note that Nabble does handle setting the encoding to utf-8 correctly if there is a special character in the original email (such as the dingbat symbol).  
Coleen