Welcome Guest, Not a member yet? Register   Sign In
Charset, CI or MySQL problem ??? ( or dumb coder problem ??? )
#12

[eluser]charlie spider[/eluser]
tried quotes_to_entities() but then i lose my Registered sysmbols

so now i'm going with this:
Code:
$desc1 = $this->input->post('shortDesc');
$desc2 = $this->input->post('longDesc');
                        
$desc1 =  str_replace('”', '"', $desc1);
$desc2 =  str_replace('”', '"', $desc2);
                        
if ($this->Boot_model->update_boot_text(    
        $this->input->post('bootID'),
        $this->input->post('nmbr'),
        $this->input->post('name'),
        $this->input->post('boot_type'),
        htmlentities ( $desc1, ENT_QUOTES, 'UTF-8' ),
        htmlentities ( $desc2, ENT_QUOTES, 'UTF-8' )
    ))

does the job

doesn't really help me understand why this is happening,
but i guess you can't have everything

side note:
i've been searching on websites that list EVERYTHING in the various charsets and i am yet to find that stupid slanted double quote, so i still don't know what it is.

thanks again for all of your help Randy


Messages In This Thread
Charset, CI or MySQL problem ??? ( or dumb coder problem ??? ) - by El Forum - 06-30-2008, 06:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB