|  | 
	
	
		| days1988 Newbie
 
 
 Joined: 17 Mar 2005
 Posts: 3
 
 
 | 
			
			  |  Posted: Thu Mar 17, 2005 9:33 am 
 Is it a bug? Trouble with using DBCS characters in variables
 
 |  
				| I got trouble with using DBCS characters in variables, if the strings contains character 0xbf. For example: 
 #va test "口"
 #sh @test
 
 I got "Z" output from the mud windows, it should be "口" (a chinese word).
 When I check the variables from the Edit Variable window, the Value of test is "口".
 
 another example:
 
 #va test %char(191)+"111"
 #sh @test
 
 it should be get "?111", but it is "?11"
 
 waitting for your help!
 thanks
 |  | 
	
	  |  | 
	
		|  | 
	
		| Spartacus Wanderer
 
 
 Joined: 23 Apr 2001
 Posts: 53
 Location: USA
 
 | 
			
			  |  Posted: Thu Mar 17, 2005 8:51 pm 
 |  
				| Do you have a DBCS capable font selected for your mud output window? 
 |  | 
	
	  | 
		    
			  | _________________ Spartacus
 rm -rf .*
 |   |  | 
	
		|  | 
	
		| days1988 Newbie
 
 
 Joined: 17 Mar 2005
 Posts: 3
 
 
 | 
			
			  |  Posted: Fri Mar 18, 2005 2:46 am   sure, I have 
 |  
				| I am using Windows XP Chinese Edition. 
 thanks for your reply.
 |  | 
	
	  |  | 
	
		|  | 
	
		| nexela Wizard
 
  
 Joined: 15 Jan 2002
 Posts: 1644
 Location: USA
 
 | 
			
			  |  Posted: Fri Mar 18, 2005 5:32 am 
 |  
				| Zmud doesnt support multi-byte languages which I believe is what chinese is. 
 |  | 
	
	  |  | 
	
		|  | 
	
		| days1988 Newbie
 
 
 Joined: 17 Mar 2005
 Posts: 3
 
 
 | 
			
			  |  Posted: Fri Mar 18, 2005 2:42 pm 
 |  
				| 
 
	  | Quote: |  
	  | Zmud doesnt support multi-byte languages which I believe is what chinese is. |  
 It not only affect multi-byte languages but also affect single-byte languages. for example:
 
 I try the same things in zmud 5.55 and zmud 7.05a, but I got different result:
 
 #va test %char(191)
 #va test1 %char(191)zmud
 
 Version 5.55' s result is correct: @test=¿, @test1=¿zmud
 
 Version 7.05a' s result is ERROR: @test=¿, @test1=úmud
 
 I believe there is a bug exist in 7.05a, when parsing a string begin with ASCII code 191(0xbf).
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |