Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Chinese Text wiped out when using a snippet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JohnWest
New Member

USA
3 Posts

Posted - Jul 11 2012 :  9:44:35 PM  Show Profile  Reply with Quote
steps to repro:
1. Create the following VA HTML snippet:
<span>$selected$</span>
and save the snippet.

2. In vc2010 create a new html file and insert the following HTML:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<body style="width: 500px; height: auto; color: black; background: white; font-family: arial, sans-serif;">
+?+?-?+?-?+?-?-?

</body>
</html>

3. Highlight all of the Chinese Text and invoke the snipet created earlier.

Expected Result: Chinese text is surrounded by span tags.

Actual Result: Chinese text is replaced by question marks. See attached image.




Visual Studio info:
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.5.50501 SP1Rel

Installed Version: Ultimate

VA System Info:
VA_X.dll file version 10.7.1906.0 built 2012.05.10
Licensed to:
VA X: [email protected] (1-user/4-PC license) Support ends 2013.03.19
DevEnv.exe version 10.0.40219.1 Ultimate
msenv.dll version 10.0.40219.1
Comctl32.dll version 6.10.7601.17514
Windows Server 2008 R2 6.1 Build 7601 Service Pack 1
8 processors (x86-64;
WOW64)
Language info: 1252, 0x409

Platform: Custom
Stable Includes:
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\include;
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\include;
C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\include;
C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\include;
D:\\Office\\dev15\\word\\inc;
D:\\Office\\dev15\\otools\\inc;

Other Includes:
D:\\TextServices\\PTLS\\PTLS6.0\\shared\\inc;
D:\\TextServices\\PTLS\\PTLS6.0\\shared\\inci;
D:\\TextServices\\PTLS\\PTLS6.0\\ls\\inc;
D:\\TextServices\\PTLS\\PTLS6.0\\ls\\inci;
D:\\TextServices\\PTLS\\PTLS6.0\\pts\\inc;
D:\\TextServices\\PTLS\\PTLS6.0\\pts\\inci;

Stable Source Directories:
D:\\TextServices\\PTLS\\PTLS6.0\\shared\\src;
D:\\TextServices\\PTLS\\PTLS6.0\\ls\\src;
D:\\TextServices\\PTLS\\PTLS6.0\\pts\\src;
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfc;
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\atl;
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\crt\\src;

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 11 2012 :  10:35:31 PM  Show Profile  Reply with Quote
Thank you for reporting this. Unfortunately, snippets are not Unicode safe yet, but we are planning to improve this at some point:

case=5792
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000