|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
In C and other languages I have had the need to convert from a character to
an integer. This is easy. Now, however, this is the first time I have had to do this in PHP and I can't find the proper function. The reason I need this is that upon downgrading to MySQL 4.0.7 (upon changing servers), data that are in the tables contain characters that are not translated properly. These characters are (at least two of them are) â and ?. I want to decode part of the string to its integer representation to see how I can handle this problem. Interestingly, the character T translates properly. The actual sequence (or one of them) is â?T I would love to avoid the necessity of fixing all those strings in the database. -- Shelly PS: I included the PHP prefix label for the filtering challenged :-) |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 13 Nov, 15:15, "Shelly" <sheldonlg.n...@asap-consult.com> wrote:
> In C and other languages I have had the need to convert from a character to > an integer. try ord() C. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
C. (http://symcbean.blogspot.com/) wrote:
> On 13 Nov, 15:15, "Shelly" <sheldonlg.n...@asap-consult.com> wrote: >> In C and other languages I have had the need to convert from a >> character to an integer. > > try ord() > > C. Thanks, that worked. I knew it had to be simple. -- Shelly |
|
![]() |
| Outils de la discussion | |
|
|