473,796 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASCII to PDU convertion and back

Hi,

For my SMS-application I need to be able to send characters with accents
(like é and à). But this doesn't seem to work in Text Mode, so i will need
to do it in PDU Mode.

Does anybody has soem converting routines for that in VB.NET? I need my text
to be converted to a PDU-message, and back (for received messages).

Thansk in advance,

Pieter

Nov 22 '05 #1
20 5108
DraguVaso <pi**********@h otmail.com> wrote:
For my SMS-application I need to be able to send characters with accents
(like é and à). But this doesn't seem to work in Text Mode, so i willneed
to do it in PDU Mode.
How did you try to do it in text mode? You'll need to know the encoding
to use, of course. Note that characters with accents in *aren't* part
of ASCII.
Does anybody has soem converting routines for that in VB.NET? I need my text
to be converted to a PDU-message, and back (for received messages).


http://www.dreamfabric.com/sms/ seems to have quite a bit of
information in it...

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #2
I tryed to set them just in ir, but that didn't work.
for exemple:
AT+GMGS="048611 2233"
This is my message with accents éà<Ctrl-Z>

Do you know the way to send the accents in text-mode? I assume it must
exist, but I can't find how :-(

"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
DraguVaso <pi**********@h otmail.com> wrote:
For my SMS-application I need to be able to send characters with accents
(like é and à). But this doesn't seem to work in Text Mode, so i will need
to do it in PDU Mode.
How did you try to do it in text mode? You'll need to know the encoding
to use, of course. Note that characters with accents in *aren't* part
of ASCII.
Does anybody has soem converting routines for that in VB.NET? I need my text to be converted to a PDU-message, and back (for received messages).


http://www.dreamfabric.com/sms/ seems to have quite a bit of
information in it...

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #3
Pieter,

I do not know this stuff however afaik is Frites written as you see here,
not Fàités.

I was curious so I have looked at some pages and I found unicode 8859-1

http://www.dreamfabric.com/sms/

What is the standard in our language zone as far as I know.

http://de.wikipedia.org/wiki/Windows-1252#Windows-1252

(And I am curious where do you use that à and what kind of keyboards do you
use Querty or Azerty?)

Cor

"DraguVaso" <pi**********@h otmail.com> schreef in bericht
news:uX******** *****@TK2MSFTNG P15.phx.gbl...
Hi,

For my SMS-application I need to be able to send characters with accents
(like é and à). But this doesn't seem to work in Text Mode, so i will need
to do it in PDU Mode.

Does anybody has soem converting routines for that in VB.NET? I need my
text
to be converted to a PDU-message, and back (for received messages).

Thansk in advance,

Pieter

Nov 22 '05 #4
DraguVaso <pi**********@h otmail.com> wrote:
I tryed to set them just in ir, but that didn't work.
for exemple:
AT+GMGS="048611 2233"
This is my message with accents éà<Ctrl-Z>

Do you know the way to send the accents in text-mode? I assume it must
exist, but I can't find how :-(


Well, what API are you using to submit the text to start with?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #5
DraguVaso <pi**********@h otmail.com> wrote:
I tryed to set them just in ir, but that didn't work.
for exemple:
AT+GMGS="048611 2233"
This is my message with accents éà<Ctrl-Z>

Do you know the way to send the accents in text-mode? I assume it must
exist, but I can't find how :-(


Well, what API are you using to submit the text to start with?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #6
I'm not using an API: I'm using VB.NET 2005 with the SerialPort-object, if
that is what you mean...

"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
DraguVaso <pi**********@h otmail.com> wrote:
I tryed to set them just in ir, but that didn't work.
for exemple:
AT+GMGS="048611 2233"
This is my message with accents éà<Ctrl-Z>

Do you know the way to send the accents in text-mode? I assume it must
exist, but I can't find how :-(


Well, what API are you using to submit the text to start with?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #7
I'm not using an API: I'm using VB.NET 2005 with the SerialPort-object, if
that is what you mean...

"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
DraguVaso <pi**********@h otmail.com> wrote:
I tryed to set them just in ir, but that didn't work.
for exemple:
AT+GMGS="048611 2233"
This is my message with accents éà<Ctrl-Z>

Do you know the way to send the accents in text-mode? I assume it must
exist, but I can't find how :-(


Well, what API are you using to submit the text to start with?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #8
DraguVaso <pi**********@h otmail.com> wrote:
I'm not using an API: I'm using VB.NET 2005 with the SerialPort-object, if
that is what you mean...


Well, that *is* using an API. Anyway...

Anyway, how are you then writing the data to the port? Are you writing
a byte array, or a string? Either way, what encoding are you using?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #9
DraguVaso <pi**********@h otmail.com> wrote:
I'm not using an API: I'm using VB.NET 2005 with the SerialPort-object, if
that is what you mean...


Well, that *is* using an API. Anyway...

Anyway, how are you then writing the data to the port? Are you writing
a byte array, or a string? Either way, what encoding are you using?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
542
by: DraguVaso | last post by:
Hi, For my SMS-application I need to be able to send characters with accents (like é and à). But this doesn't seem to work in Text Mode, so i will need to do it in PDU Mode. Does anybody has soem converting routines for that in VB.NET? I need my text to be converted to a PDU-message, and back (for received messages). Thansk in advance,
24
9074
by: ChaosKCW | last post by:
Hi I am reading from an oracle database using cx_Oracle. I am writing to a SQLite database using apsw. The oracle database is returning utf-8 characters for euopean item names, ie special charcaters from an ASCII perspective. I get the following error: > SQLiteCur.execute(sql, row)
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9533
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10019
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9057
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.