develooper Front page | perl.beginners | Postings from January 2011

Fwd: How to convert EURO Symbol € character to Hex

Thread Next
From:
Khabza Mkhize
Date:
January 18, 2011 00:27
Subject:
Fwd: How to convert EURO Symbol € character to Hex
Message ID:
AANLkTi=ftTk40aLcdUCaCW3_LJ7zyA323pXgbfk8y7J5@mail.gmail.com
I have program which write data to SQL Database, one of my input field is €
but it was working fine all along one day one of my user was working from
home using remote connection to the office. He save some data when come back
found all data that include euro € character have

weird like "BC�01" instant of BC€01


now I am trying to pattern match the string value and convert it to another
value


eg if ($euros eq 'BC€01'){

$euros = 'EUROS';

}


now my problem is I cant type € symbol on my editor Textpad it return funny
characters like €


kind
Khabza
Green IT Web
http://www.greenitweb.co.za


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About