Discussion of open issues, suggestions and bugs regarding Virtual Data Access Components for Delphi, C++Builder, Lazarus (and FPC)
			
		
		
			- 
				
																			 pwatel
- Posts: 39
- Joined: Wed  11 Feb 2009 09:42
						
						
													
							
						
									
						Post
					
								by pwatel » Wed  22 Apr 2009 13:48
			
			
			
			
			the unicodes char get lost in translation....
I could not find an option useunicode=true like in a DBconnection
and ftwidestring does not cut it
  Edit1.Text := '6. Modéré';
  VirtualTable1.Active  := True;
  VirtualTable1.Clear;
  VirtualTable1.Insert;
  VirtualTable1.Fields[0].Value := Edit1.Text ;
 // of  ftstring type if use ftwidestring it does not work at all
  VirtualTable1.Post;
the accents are lost and it shows or read:  6. Modere
which is not good if you are looking a unicode file names like Itunes..
Or I am missing something... an option
I could not find it..any ideas thanks
regards 
Philippe
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 Plash
- Devart Team
- Posts: 2844
- Joined: Wed  10 May 2006 07:09
						
						
													
							
						
									
						Post
					
								by Plash » Thu  23 Apr 2009 07:06
			
			
			
			
			You should use ftWideString. It was not working because you did not set the Size property for the FieldDef. You should set the Size property to the maximum size of data in the field.
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 pwatel
- Posts: 39
- Joined: Wed  11 Feb 2009 09:42
						
						
													
							
						
									
						Post
					
								by pwatel » Fri  24 Apr 2009 08:21
			
			
			
			
			Yes it works thank you
But if all in D2009 is unicode why ftstring is not unicode by default
It is a pain sometimes automatic sometimes not
not only your product a lot of functions
regards
PW
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 Plash
- Devart Team
- Posts: 2844
- Joined: Wed  10 May 2006 07:09
						
						
													
							
						
									
						Post
					
								by Plash » Mon  27 Apr 2009 07:26
			
			
			
			
			DataType of a field determines the internal format for storing data. ftString means that data are stored in the Ansi format. ftWideString means that data are stored in the Unicode format. CodeGear has decided not to change this in Delphi 2009.