![]()  | 
	
| 
	 | 
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			The last thing I can think of is to manually set the encoding of the text object to UTF8: 
		
		
		
		
		
		
		
		
	
	Code: 
	text.setEncoding(viz.ENCODING_UTF8) You can attach images to a post by clicking the "Manage attachments" button when replying.  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				worked!
			 
			
			
			it worked  
		
		
		
		
		
		
		
		
	
	![]() thanks a bunch  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				another small problem with hebrew
			 
			
			
			when using the code written before - it reverses the order of the letters ( which can also be seen in the jpg you attached ) 
		
		
		
		
		
		
		
		
	
	i tried fixing this using method such as aa = array.array('c', chars) aa.reverse() newa = aa.tostring() or temp = list(string) temp.reverse() newString = string.join(temp, '') but for some reason this scrambled the hebrew, and adding a text with the new strings led to strange results... any solution? thanks dan  | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Here is some sample code that will reverse an utf8 string: 
		
		
		
		
		
		
		
		
	
	Code: 
	# coding: UTF-8
import viz
viz.go()
def reverse_hebrew(s):
	u = unicode(s,'utf8')
	u = u[::-1]
	return u.encode('utf8')
text = viz.addText(reverse_hebrew('קראטוןםפשדגכעיחלךזסבהנמצ'),viz.SCREEN,pos=(0.5,0.5,0),align=viz.TEXT_CENTER_CENTER)
 | 
![]()  | 
	
	
| Thread Tools | |
| Display Modes | Rate This Thread | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| McAfee Privacy Service 8.1 causes Vizard not to run | mspusch | Vizard | 2 | 09-24-2008 06:17 PM | 
| Vizard and Augmented Reality | realvision | Vizard | 4 | 04-04-2008 11:59 AM | 
| Vizard won't run | wouters | Vizard | 5 | 02-05-2008 12:12 PM | 
| Fall 2007 release of Vizard R3 | 3 D | Announcements | 0 | 10-15-2007 05:50 PM | 
| McAfee Privacy Service 8.1 causes Vizard not to run | mspusch | Vizard | 0 | 03-01-2007 09:24 PM |