Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,208,746 members, 8,003,619 topics. Date: Friday, 15 November 2024 at 04:16 PM

What Charset Owns This Stubborn Character � - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / What Charset Owns This Stubborn Character � (670 Views)

Please How Do I Open Stubborn Website With My Etisalat Modem / Stubborn Virus.how Do I Get Rid Of Them? / Getting The First Character Of Array Values, Php ? (2) (3) (4)

(1) (Reply) (Go Down)

What Charset Owns This Stubborn Character � by Nobody: 6:09pm On Nov 04, 2009
hi all, I have spent close to 4 hours on this '�'
i really need to know what charset owns it, maybe that will mark the beginning of it's end
the stubborn thing keep coming up in my application
thanks
Re: What Charset Owns This Stubborn Character � by yawatide(f): 6:46pm On Nov 04, 2009
It is not visible here so we can't say wink

Do you define your charset in your HEAD tags (I use ISO-88 whatever and it pulls up pretty much every special character known to man)?
Re: What Charset Owns This Stubborn Character � by Nobody: 8:15pm On Nov 04, 2009
you mean u cant see this characters i am seeing?

����������
����������

character that looks like a square box standing on it's sharp edge, with a question mark in it?

i must be losing it!

the problem is during insertion into mysql DB, the DB table uses latin1_swedish_ci encoding and all i do is grab a newly arrived string coming via base64_encode/decode

say the data is "cool", i get this naughty character separate every character, to form something like c�o�o�l�

just before the database insertion, i echoed the string which gave me the correct "cool"
only to check my db to see the character litter everywhere.

somehow, this occurs only on fields with type varchar(), char text, these field has their individual charset set to latin1_swedish_ci
i try changing the column charsets but no luck
Re: What Charset Owns This Stubborn Character � by Nobody: 6:22am On Nov 05, 2009
same thing is messing up my current application - and i cant figure it out yet
Re: What Charset Owns This Stubborn Character � by Nobody: 2:40pm On Nov 05, 2009
i think this is getting tougher than it should.

I noticed that the character only shows up within my app, when i use firefox.
other browsers do just fine.

I was hoping that when i view this nairaland thread in other browsers, i wont see the character, but nah!
other browsers displays the character so making me think, i have just started.

one thing tells me it's a firefox issue, another tells me it's some kind of physics am yet to understand.
time is not my friend on this project.

i would have opted for the mysql repace() function but what character will i be replacing, my editors can't take the character without transforming it to question mark(?), this character is obviously not question mark.
Re: What Charset Owns This Stubborn Character � by Nobody: 9:02pm On Nov 05, 2009
i finally got a solution, i just exported the sql only to discover that somehow, the character evaluates to '\0' (without the quotes) and this happens within mysql only.

so all i did was

insert into blabla (x,y,z) values(20, replace('abcd','\0',''), 'c')
since replace is a mysql function and not php's
so the conversion is happening right inside the war zone.

though i still need to go back to school to go learn characters and alphabet grin grin
Re: What Charset Owns This Stubborn Character � by Nobody: 9:07pm On Nov 05, 2009
In my own case, i did something that converts from excel csv directly into html and then stored the html into dbase.
From what you said, i will try out some combinations and hope to solve the problem
Re: What Charset Owns This Stubborn Character � by Nobody: 11:02pm On Nov 05, 2009
i noticed too after you said it that the character only comes up after i save that html into dbase. . .so i need to use that your
replace function to solve it then. . .
Re: What Charset Owns This Stubborn Character � by Nobody: 11:27pm On Nov 05, 2009
in what database are u saving it in?
Re: What Charset Owns This Stubborn Character � by Nobody: 3:36am On Nov 06, 2009
mysql dbase. I made the application such that after conversion of excel (*.csv) to html, it saves it in dbase, and later allows
editing of the stuff with a web-based wysiwyg editor

(1) (Reply)

Help: Romoving The Name 'child Board' On Homepage / Search Engine Help! / Pls Does I Need A Site From Which I Can Download Photoshop Book Free

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 15
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.