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
 BUG: Surround with loses UNICODE encoding
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mordachai
Tomato Guru

USA
224 Posts

Posted - Mar 21 2013 :  09:26:37 AM  Show Profile  Reply with Quote
I have a block of text with some unicode literals:


const wchar_t * kszDefaultTextFaceNameJapan	 = _T("#65325;#65331; #12468;#12471;#12483;#12463;");
const wchar_t * kszDefaultDimensionFaceNameJapan = _T("#65325;#65331; #12468;#12471;#12483;#12463;");


I highlight that, type the # key, which brings up the surround with preprocessor define, type UNICODE, hit enter, and get back

#ifdef UNICODE
const wchar_t * kszDefaultTextFaceNameJapan	 = _T("MS ????");
const wchar_t * kszDefaultDimensionFaceNameJapan = _T("MS ????");
#endif // UNICODE


Hmmm... this FORUM mucks with the data (apparently it's not unicode enabled? But pretend the first block has Japanese Kanji, while the second has what you probably see: junk.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 21 2013 :  2:22:21 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=5792

I was wondering about this bug for a moment, but after you pointed out that it was indeed unicode originally, it makes sense now :)
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