I'm trying to insert single Quotation marks inside a double quotation marks...
Beginning Quotation mark like this "“"
..... and ending Quotation mark like this "”"
...
My code:
objWriter.WriteLine("<li>" + "“" + "<em>" + BP1.Text + "</em>" + "”" + " ― " + "<strong>" + BPGB1.Text + "</strong>" + "</li>")
You will have to change the &"""" with chr(24)
so you would have something like this objWriter.WriteLine("
It seems you used the wrong character for single quotation:
not sure if this works or not:
or maybe even this
1st:
The characters that you mentioned are not a single quote, are a double quote.
2nd:
In Vb.Net, unlike C#, string concatenations are made with the
&
operator, avoid using the+
operator, it will give you unexpected results in some scenarios.The Visual Studio's code editor automaticaly replaces the characters that you've mentioned with a common double quote, however, knowing the Unicode references you can get the specific characters at execution time then concat them as normally or using the String.Format() method in this way:
UPDATE
An example with the string that you've provided: