PDA

View Full Version : VendorString with Quotes



cummins
10-08-2009, 10:53 AM
I noticed that there is an inssue saving quotes to VenderString, and the list is following..

‹ single, left angle quote;
› single, right angle quote;
« double, left angle quote;
» double, right angle quote;
‘ left quote (single high-6);
’ right quote (single high-9);
“ left quote (double high-6);
” right quote (double high-9);
„ double quote (double low-9);

Are there any other characters that won't work with VendorString?

corwinjoy
10-12-2009, 03:53 PM
I ran into the same issue with Vendor Strings. The documentation doesn't say it very clearly, but your vendor string is put into the XML license request "as-is". This means that all the usual reserved characters in XML need to be escaped.

" "
' '
< &lt;
> &gt;
& &amp;

I run my vendor strings through a simple function to find and replace all the reserved characters.