Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to replace all non GSM 7-bit default characters?

by Perlbotics (Archbishop)
on Dec 02, 2018 at 18:02 UTC ( [id://1226631]=note: print w/replies, xml ) Need Help??


in reply to How to replace all non GSM 7-bit default characters?

What's your input character set? Latin-X? UTF-Y?
The demo section of GSM::Nbit provides a good hint:

use Encode qw/encode decode/; ... # We need to encode it first - for details see: # http://www.dreamfabric.com/sms/default_alphabet.html my $txt0338 = encode("gsm0338", $txt); # <--- look! ...
I havn't checked it, but Encode seems to have solved your problem already or can do most of the heavy lifting for you? See also: Encode::GSM0338
The link to dreamfabric seems no longer availabe, but the Wayback Machine still remembers.

Replies are listed 'Best First'.
Re^2: How to replace all non GSM 7-bit default characters?
by makafre (Initiate) on Dec 03, 2018 at 00:32 UTC
    Works perfectly ! Thank you !

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1226631]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-16 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found