Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Perlbotics (Bishop)
on Dec 02, 2018 at 18:02 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2022-05-22 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?