473,322 Members | 1,431 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,322 software developers and data experts.

character Â

The character  shows up multiple times on my parsed strings. I tried to get
rid of it with the following code without success. Is that character
represented by anything else? Thanks

$bad_chars = array(chr(194), 'Â');
str_replace($bad_chars, '', $parsed_string)
May 13 '07 #1
2 7513
On May 13, 6:58 am, "Peter Parker" <spider...@home.comwrote:
The character  shows up multiple times on my parsed strings. I tried to get
rid of it with the following code without success. Is that character
represented by anything else? Thanks

$bad_chars = array(chr(194), 'Â');
str_replace($bad_chars, '', $parsed_string)
sounds like an encoding issue, you need to make sure of the encoding
of the string you are parsing, try converting it to something you are
sure that the parser will understand, like iso-8859-1 from utf-8 for
instance.
consider using mb_ functions which understand multibyte characters,
php has not got good support for character encoding, alot of its
functions are not utf8 aware, but some have options to allow that
awareness, if you are using php5 you are better off than struggling
with php4, but roll on 6.

May 13 '07 #2
At Sun, 13 May 2007 05:30:51 -0700, shimmyshack let his monkeys type:
On May 13, 6:58 am, "Peter Parker" <spider...@home.comwrote:
>The character  shows up multiple times on my parsed strings. I tried to get
rid of it with the following code without success. Is that character
represented by anything else? Thanks

$bad_chars = array(chr(194), 'Â');
str_replace($bad_chars, '', $parsed_string)

sounds like an encoding issue, you need to make sure of the encoding
of the string you are parsing, try converting it to something you are
sure that the parser will understand, like iso-8859-1 from utf-8 for
instance.
consider using mb_ functions which understand multibyte characters,
php has not got good support for character encoding, alot of its
functions are not utf8 aware, but some have options to allow that
awareness, if you are using php5 you are better off than struggling
with php4, but roll on 6.
O.T., Shimmyshack is it my newsreader not capable of handling the type of
subject string you send, or is it something misconfigured in your system
or at the google groups end ?? All your posts appear in my header pane
formatted roughly like:

=?iso-8859-1?q?Re:_character_=C2?=

I am using pan 0.14.2 btw, on Gentoo Linux, kernel 2.6.17-gentoo-r7

Rgds
Sh.

May 13 '07 #3

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

Similar topics

37
by: chandy | last post by:
Hi, I have an Html document that declares that it uses the utf-8 character set. As this document is editable via a web interface I need to make sure than high-ascii characters that may be...
4
by: mimmo | last post by:
Hi! I should convert the accented letters of a string in the correspondent letters not accented. But when I compile with -Wall it give me: warning: multi-character character constant Do the...
7
by: teachtiro | last post by:
Hi, 'C' says \ is the escape character to be used when characters are to be interpreted in an uncommon sense, e.g. \t usage in printf(), but for printing % through printf(), i have read that %%...
18
by: james | last post by:
Hi, I am loading a CSV file ( Comma Seperated Value) into a Richtext box. I have a routine that splits the data up when it hits the "," and then copies the results into a listbox. The data also...
9
by: simchajoy2000 | last post by:
Hi, I know what the ASCII Character Codes are for the 2nd and 3rd powers in VB.NET but I can't find the 6th power anywhere - does anyone know what it might be or if it even exists? Joy
15
by: wizardyhnr | last post by:
i want to try ANSI C99's unicode fuctions. so i write a test program. the function is simple, but i cannot compile it with dev c++ 4.9.9.2 under windows xp sp2, since the compiler always think that...
17
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when...
3
KevinADC
by: KevinADC | last post by:
Purpose The purpose of this article is to discuss the difference between characters inside a character class and outside a character class and some special characters inside a character class....
7
by: tempest | last post by:
Hi all. This is a rather long posting but I have some questions concerning the usage of character entities in XML documents and PCI security compliance. The company I work for is using a...
10
by: Paul W | last post by:
Hi all, I have an application that reads data in from a text file and stores it in a database. My problem is that there are some characters in the file that aren't being handled properly. For...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.