Sponsored Content
Full Discussion: Encoding problem
Operating Systems Solaris Encoding problem Post 302527897 by /dev/bag on Monday 6th of June 2011 02:30:00 AM
Old 06-06-2011
:-), It's SMS CDR (Call detail record). It is saved by the SMSC, But as I mentioned, the other chars are ok, It got this weired encoding only when there is more than one number.
For example: if you have this 1a1, you'll have 316131, but when you have it like this 11a it will be like this: B11861.

Thanks,
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

encoding

Hi, I'm using putty and when I try to write ü it writes | (or when I try to write é , it writes i) I tried to change settings/translation of putty but with no success I have KSH # locale LANG= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C"... (3 Replies)
Discussion started by: palmer18
3 Replies

2. UNIX for Dummies Questions & Answers

Encoding Problem while using "|" (PIPE) as delimiter from Mainframe to Unix

We are facing a problem with PIPE (|) as a delimiter in one of our FTP flat files. We are constructing a Flat file in IBM-AIX and this contains various strings delimted by PIPE Symbol and then FTPing this to a Mainframe System The Mainframe program simply recieves this and FTPs the same... (1 Reply)
Discussion started by: seshendra
1 Replies

3. Shell Programming and Scripting

URL encoding

Hi All, I want to do URL encoding using shell script in my project. I decided that the sed is the correct tool to do this. But I am unable achieve what I wanted using sed. kindly help me to get rid of this. My requirement is , there will be one URL with all special character, spaces etc... ... (8 Replies)
Discussion started by: Vichu
8 Replies

4. Shell Programming and Scripting

get the file encoding

Hello! The system is AIX 5.3 Give please command or script to get the file encoding Thanks (2 Replies)
Discussion started by: vinment
2 Replies

5. AIX

get the file encoding

Hello! The system is AIX 5.3 Give please command or script to get the file encoding (1 Reply)
Discussion started by: vinment
1 Replies

6. Shell Programming and Scripting

Encoding troubles

Hello All I have a set of files, each one containing some lines that follows that regex: regex='disabled\,.*\,\".*\"'and here is what file says about each files: file <random file> <random file> ASCII text, with CRLF line terminatorsSo, as an example, here is what a file ("Daffy Duck - The... (3 Replies)
Discussion started by: tukuyomi
3 Replies

7. UNIX for Dummies Questions & Answers

Encoding Type

Hi, Where can I find the encoding type in a unix server ? Thanks in advance !!! (1 Reply)
Discussion started by: risshanth
1 Replies

8. Shell Programming and Scripting

Cygwin vi XML file encoding problem

Hi, I have got a zip (binary) file transferred from MacOS (thus it has additional __MACOSX directory packed inside). On extracting this zip, there are few *.xml files available. When I opened this *.xml file in vim editor using Cygwin (on windows) the editor displayed in the bottom. I tried... (4 Replies)
Discussion started by: royalibrahim
4 Replies

9. Shell Programming and Scripting

How to find the file encoding and updating the file encoding?

Hi, I am beginner to Unix. My requirement is to validate the encoding used in the incoming file(csv,txt).If it is encoded with UTF-8 format,then the file should remain as such otherwise i need to chnage the encoding to UTF-8. Please advice me how to proceed on this. (7 Replies)
Discussion started by: cnraja
7 Replies

10. Solaris

View file encoding then change encoding.

Hi all!! I´m using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . I´m expecting / looking an output as UTF8 or ANSI / ASCII Is there command to display the files encoding? Thank you! (2 Replies)
Discussion started by: mrreds
2 Replies
SMS::Send(3pm)						User Contributed Perl Documentation					    SMS::Send(3pm)

NAME
SMS::Send - Driver-based API for sending SMS messages SYNOPSIS
# Create a sender my $sender = SMS::Send->new('SomeDriver', _login => 'myname', _password => 'mypassword', ); # Send a message my $sent = $sender->send_sms( text => 'This is a test message', to => '+61(4) 1234 5678', ); # Did the send succeed. if ( $sent ) { print "Message sent ok "; } else { print "Failed to send message "; } DESCRIPTION
"SMS::Send" is intended to provide a driver-based single API for sending SMS and MMS messages. The intent is to provide a single API against which to write the code to send an SMS message. At the same time, the intent is to remove the limits of some of the previous attempts at this sort of API, like "must be free internet- based SMS services". "SMS::Send" drivers are installed separately, and might use the web, email or physical SMS hardware. It could be a free or paid. The details shouldn't matter. You should not have to care how it is actually sent, only that it has been sent (although some drivers may not be able to provide certainty). METHODS
installed_drivers The "installed_drivers" the list of SMS::Send drivers that are installed on the current system. new # The most basic sender $sender = SMS::Send->new('Test'); # Indicate regional driver with :: $sender = SMS::Send->new('AU::Test'); # Pass arbitrary params to the driver $sender = SMS::Send->new('MyDriver', _login => 'adam', _password => 'adam', ); The "new" constructor creates a new SMS sender. It takes as its first parameter a driver name. These names map the class names. For example driver "Test" matches the testing driver SMS::Send::Test. Any additional params should be key/value pairs, split into two types. Params without a leading underscore are "public" options and relate to standardised features within the SMS::Send API itself. At this time, there are no usable public options. Params with a leading underscore are "private" driver-specific options and will be passed through to the driver unchanged. Returns a new SMS::Send object, or dies on error. send_sms # Send a message to a particular address my $result = $sender->send_sms( text => 'This is a test message', to => '+61 4 1234 5678', ); The "send_sms" method sends a standard text SMS message to a destination phone number. It takes a set of named parameters to describe the message and its destination, again split into two types. Params without a leading underscore are "public" options and relate to standardised features within the SMS::Send API itself. text The "text" param is compulsory and should be a plain text string of non-zero length. The maximum length is currently determined by the driver, and exceeding this length will result in an exception being thrown if you breach it. Better functionality for determining the maximum-supported length is expected in the future. You input would be welcome. to The "to" param is compulsory, and should be an international phone number as indicated by a leading plus "+" character. Punctuation in any form is allowed, and will be stripped out before it is provided to the driver. If and only if your driver is a regional driver (as indicated by a ::-seperated name such as AU::Test) the "to" number can also be in a regional-specific dialing format, "without" a leading plus "+" character. Providing a regional number to a non-regional driver will throw an exception. Any parameters with a leading underscore are considered private driver-specific options and will be passed through without alteration. Any other parameters without a leading underscore will be silently stripped out and not passed through to the driver. After calling "send_sms" the driver will do whatever is required to send the message, including (potentially, but not always) waiting for a confirmation from the network that the SMS has been sent. Given that drivers may do the actual mechanics of sending a message by quite a large variety of different methods the "send_sms" method may potentially block for some time. Timeout functionality is expected to be added later. The "send_sms" returns true if the message was sent, or the driver is fire-and-forget and unable to determine success, or false if the message was not sent. SUPPORT
Bugs should be reported via the CPAN bug tracker at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SMS-Send <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SMS-Send> For other issues, contact the author. AUTHOR
Adam Kennedy <adamk@cpan.org> COPYRIGHT
Copyright 2005 - 2011 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.14.2 2012-04-07 SMS::Send(3pm)
All times are GMT -4. The time now is 11:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy