I extract some information from K-9 using the %EFROM variable, and
display it as a widget using Minimalistic Text. Whenever someone has a
non-english character in their name, i.e. a Norwegian character, their
name get put inside "-characters.
English characters:
%EFROM = John Smith
Non-english characters:
%EFROM = "Jøhn Smøth"
Is there some easy way to remove the character " from this variable?
I've been thinking of using split, but their sender name may contain
multiple "words" (names), wouldn't that make it complicated?
Also, if they haven't entered a sender name, %EFROM will be their
actual email-adress. I then do a split using @, to get whatever that's
before the @ as what that will be displayed on the Minimalistic Text
widget.
So, from the email
steve...@apple.com, I will get
"
steve.jobs" (without "-signs). However, a lot of people seem to enter
their email as
Steve...@apple.com, and then I will get Steve.Jobs.
Is there a sufficient way to replace any .'s in a variable with
spaces? Here, I've also though about using split, but again, they may
have multiple names.
So, to sum up.. How can I get change variables in this way:
"any number of words" => any number of words
any.number.of.words => any number of words
Best regards