Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Converting European Characters Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: April 23 2011 at 17:58 | IP Logged Quote patrickm

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 View patrickm's Profile Search for other posts by patrickm
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: April 29 2011 at 13:04 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: May 19 2011 at 12:07 | IP Logged Quote patrickm

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 View patrickm's Profile Search for other posts by patrickm
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: May 22 2011 at 16:55 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: May 22 2011 at 17:22 | IP Logged Quote patrickm

Thanks Dave,
I was hoping there was some kind of unicode function or something that would have worked.

Patrick

Back to Top View patrickm's Profile Search for other posts by patrickm
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum