| Author | 
         | 
         
      
        
         
         patrickm Senior Member 
          
 
  Joined: February 22 2007 Location: United States
 Online Status: Offline Posts: 188
          | 
        
         
          
           | Posted: April 23 2011 at 17:58 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hello,
 I am looking for a way to convert European characters to normal ASCII characters in PowerHome.
 
 I listen to a lot of classical music and the meta data is full of vowels and other characters that are not displayed properly on my keypads.
 
 Any help would be appreciated.
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         dhoward Admin Group 
          
  
  Joined: June 29 2001 Location: United States
 Online Status: Offline Posts: 4447
          | 
        
         
          
           | Posted: April 29 2011 at 13:04 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Patrick,
 
 Probably would need to write a function or macro to do a search and replace type of action.  Can you post some samples of what you see along with the equivalent of what you'd like to see and I can see what I can come up with.
 
 Thanks,
 
 Dave.
 
         | 
       
       
        | Back to Top | 
         
          
          
         | 
       
       
       
        |   | 
      
        
         
         patrickm Senior Member 
          
 
  Joined: February 22 2007 Location: United States
 Online Status: Offline Posts: 188
          | 
        
         
          
           | Posted: May 19 2011 at 12:07 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi Dave,
 Here is a link to some of the type of characters I'm seeing in the meta data:
 
  http://en.wikipedia.org/wiki/Western_Latin_character_sets_(c omputing)
 
 http://www.biega.com/special-char.html
 
 Here are some typical examples:
 
 Original -> Desired
 
 Freischütz -> Freischutz
 
 Kaliště -> Kaliste
 
 Géza -> Geza
 
 Thanks,
 Patrick
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         dhoward Admin Group 
          
  
  Joined: June 29 2001 Location: United States
 Online Status: Offline Posts: 4447
          | 
        
         
          
           | Posted: May 22 2011 at 16:55 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Patrick,
 
 Cant think of a really good way to do this other than to check for every possible instance and replace as needed.  An example of the three you posted above would be:
 
  ph_replaceallmulti(ph_getvar_s(1,1),"ü~255š~255é","u~255s~25 5e")
 
 This would handle any instance of what you posted and assumes that the text you want to have searched and replace is stored in [LOCAL1].
 
 Hope this helps,
 
 Dave.
 
         | 
       
       
        | Back to Top | 
         
          
          
         | 
       
       
       
        |   | 
      
        
         
         patrickm Senior Member 
          
 
  Joined: February 22 2007 Location: United States
 Online Status: Offline Posts: 188
          | 
        
         
          
           | Posted: May 22 2011 at 17:22 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Thanks Dave,
 I was hoping there was some kind of unicode function or something that would have worked.
 
 Patrick
 
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |