473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Unicode

is there any way to convert a unicode text to normal text in a text box
before using it?

I have an aplication (SMS Application) that submits all the 160
character message to the database, then another script grabs it from
the DB and sends it through the route.

I'm having a problem with unicode characters, they cost double and i
need a way to convert all unicode to normal text before sending it.

Feb 17 '06 #1
4 2335
Maximus a couché sur son écran :
is there any way to convert a unicode text to normal text in a text box
before using it?

I have an aplication (SMS Application) that submits all the 160
character message to the database, then another script grabs it from
the DB and sends it through the route.

I'm having a problem with unicode characters, they cost double and i
need a way to convert all unicode to normal text before sending it.


Depends on what your call "normal" text.
utf8_decode($str) will decode an utf8 encoded string in a ISO-8859-1
string.

Regards,

--
Julien CROUZET - DSI Theoconcept
julien.crouzet@/enlever ca\theoconcept.com
http://www.theoconcept.com
Feb 17 '06 #2
what if i wanted to convert from anything to ISO-8859-1

let's say i want it converted from any type of text inserted by the user

Feb 17 '06 #3
Maximus a formulé ce vendredi :
what if i wanted to convert from anything to ISO-8859-1

let's say i want it converted from any type of text inserted by
the user


'Anything' is quite dangerous here, a character code is generally
in more than one encoding, isn't there any way to store the encoding
(ie: guessed from HTTP Headers) in your database ?

Have a look at http://us2.php.net/manual/en/ref.recode.php to convert
quite 'anything' to quite 'anything'.

--
Julien CROUZET - DSI Theoconcept
julien.crouzet@/enlever ca\theoconcept.com
http://www.theoconcept.com
Feb 17 '06 #4
On 2006-02-17, Maximus <te******@gmail.com> wrote:
is there any way to convert a unicode text to normal text in a text box
before using it?
converting in the text box without using the text box?

what's a text box?
I have an aplication (SMS Application) that submits all the 160
character message to the database, then another script grabs it from
the DB and sends it through the route.
sounds fairly straight forward.
I'm having a problem with unicode characters, they cost double and i
need a way to convert all unicode to normal text before sending it.


what's the difference between normal text and unicode?

Bye.
Jasen
Feb 18 '06 #5

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

Similar topics

3
by: Michael Weir | last post by:
I'm sure this is a very simple thing to do, once you know how to do it, but I am having no fun at all trying to write utf-8 strings to a unicode file. Does anyone have a couple of lines of code...
8
by: Bill Eldridge | last post by:
I'm trying to grab a document off the Web and toss it into a MySQL database, but I keep running into the various encoding problems with Unicode (that aren't a problem for me with GB2312, BIG 5,...
8
by: Francis Girard | last post by:
Hi, For the first time in my programmer life, I have to take care of character encoding. I have a question about the BOM marks. If I understand well, into the UTF-8 unicode binary...
48
by: Zenobia | last post by:
Recently I was editing a document in GoLive 6. I like GoLive because it has some nice features such as: * rewrite source code * check syntax * global search & replace (through several files at...
4
by: webdev | last post by:
lo all, some of the questions i'll ask below have most certainly been discussed already, i just hope someone's kind enough to answer them again to help me out.. so i started a python 2.3...
2
by: Neil Schemenauer | last post by:
python-dev@python.org.] The PEP has been rewritten based on a suggestion by Guido to change str() rather than adding a new built-in function. Based on my testing, I believe the idea is...
10
by: Nikolay Petrov | last post by:
How can I convert DOS cyrillic text to Unicode
6
by: Jeff | last post by:
Hi - I'm setting up a streamreader in a VB.NET app to read a text file and display its contents in a multiline textbox. If I set it up with System.Text.Encoding.Unicode, it reads a unicode...
13
by: Tomás | last post by:
Let's start off with: class Nation { public: virtual const char* GetName() const = 0; } class Norway : public Nation { public: virtual const char* GetName() const
24
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.