Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 [Bug] VA doesn't support special char in snippets

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
GroovyGregory Posted - Jun 11 2009 : 09:39:06 AM
Hey, I do use a snippet for documentation, that uses a special character, that is still in the ANSI standard (codepage 1252).

It looks like this:
//G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??
/// Description
///
/// @param (type) Name
/// @return (type)
//G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??G??

(Because of the font, you will see a straight line in visual studio)

The special character is: G??

I can safely use this character in Visual Studio, but when i paste it into the snippet editor, VA transforms it into a normal minus sign ("-").

When I edit the snippet file, it even displays it correctly in the snippet editor, but whenever I "execute" the snippet, the sign will be replaced with an unknown other character.

Is there any chance this may get fixed?
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 12 2009 : 2:57:01 PM
Thank you for running these tests, the results are certainly interesting. This suggests there is something "special" about the copyright symbol character which allows it to work.

The basic problem at work here is limited support for Unicode in various parts of VA. We are working on this, and improving Unicode support, but we need to do so without breaking loads of things along the way.
GroovyGregory Posted - Jun 11 2009 : 6:24:58 PM
Okay, here are some tests that I made.

Putting the dash (U+2014) into the JS.tpl with ANSI encoding will result in VA transforming the character into U+0097. As Notepad++ is doing the same, when switching between ANSI and UTF-8, it doesn't seem to be VA's fault.

Now comes the funny part. If save JS.tpl in UTF-8 the problem stays the same. But if I save it in UTF-8 AND add a real dash (U+2014) somewhere next to the converted dashes (U+0097), VA will output the converted dashes correctly but show the correct dash as the three letters "+?G??G?", which is one char for every byte of the unicode. save the same file without changes as ANSI again, and the result is the same.

maybe this helps you a little. it is all kinda weird.

cheers.

p.s. i am using German Win 7 RC and English Visual Studio
feline Posted - Jun 11 2009 : 3:22:36 PM
This is currently a known limitation that we are hoping to fix one day:

case=1160

Are you using a localised OS or IDE? We had a user who wanted to use the copyright symbol / character in a VA Snippet, and after inserting this directly into the TPL file the snippet worked correctly. So I am a little surprised that directly editing the file did not work for you.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000