Problem set DiffMerge Tool character encodings.

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
heihoo
Posts: 7
Joined: Thu Apr 20, 2006 9:31 pm

Problem set DiffMerge Tool character encodings.

Post by heihoo » Fri Apr 21, 2006 9:07 am

I use simplified Chinese language files.
But I can't set gb2312 character encodings in the DiffMerge Tool.

thanks a lot!

ps. SourceGear Vault Client version is 3.1.8 (3771)

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Fri Apr 21, 2006 10:16 am

Add the attached .so file to the location where the other sgdm .so files are, and after restarting the tool, it should be available.
Attachments
gb2312.zip
gb2312.so
(37.32 KiB) Downloaded 537 times

heihoo
Posts: 7
Joined: Thu Apr 20, 2006 9:31 pm

Post by heihoo » Fri Apr 21, 2006 1:55 pm

It do not work.thx
Attachments
2.GIF
Operation
2.GIF (17.49 KiB) Viewed 5889 times
1.GIF
Error
1.GIF (7.96 KiB) Viewed 5889 times

Perry
Posts: 110
Joined: Tue Dec 27, 2005 9:11 am

Post by Perry » Fri Apr 21, 2006 3:17 pm

That dialog screenshot doesn't look like it makes any sense.

GB-2312 is not a unicode encoding.

#1)
I recommend you try checking the ANSI radio checkbox (that is a very poorly named button, but it follows Microsoft's poor naming convention) and putting GB-2312 into that box.

(ANSI doesn't mean ANSI, it means non-Unicode, in Microsoft-language.)

#2)
I suggest that the software should warn the user if it finds an inappropriate such string in the Unicode edit box, because I doubt that that makes any sense.


Caveat: I'm no expert on these subjects, and I've not tried this myself.

heihoo
Posts: 7
Joined: Thu Apr 20, 2006 9:31 pm

Post by heihoo » Sat Apr 22, 2006 9:35 am

I putin gb2312 or gb-2312 into ansi textbox.but it look at the same error message.
Where did I work error?
ps: I copy gb2312.so into the iconv forld.
thx.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Tue Apr 25, 2006 4:00 pm

OK, we've found the problem. gb2312.so actually depends on another encoding called gb_2312-80.so. So, you need to install the gb_2312-80.so file into the same inconv folder, and then gb2312 should load. It is in the attached file
Attachments
gb_2312-80.zip
(70.03 KiB) Downloaded 573 times

heihoo
Posts: 7
Joined: Thu Apr 20, 2006 9:31 pm

Post by heihoo » Tue Apr 25, 2006 11:38 pm

I used tool to show different.
It is the same file beteen gb2312 from gb2312-80.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Apr 26, 2006 6:36 am

Does it still not load?

Perry
Posts: 110
Joined: Tue Dec 27, 2005 9:11 am

Post by Perry » Wed Apr 26, 2006 7:44 am

GB-2312 is a very old encoding for simplified Chinese, at least judging by the info on wikipedia:

http://en.wikipedia.org/wiki/GB2312

It looks to me like GB-2312 is also known as GB2312-80 because it was created in 1980.

It looks like it was obsoleted in 1993 by GBK, which was in turn obsoleted in 2000 by GB-18030 (or GB18030-2000), which is now the mandated encoding for PRC (since 2001).

Post Reply