Jump to content

echo "Č" outputs C


dsdsdsdsd

Recommended Posts

Gibby, thanks for responding;

 

unfortunately html is not my final destination for the special characters; they are sent to flash; during that process flash uses "&varA=valA&varB=valB";

 

as a consequence I can't use &'s in my encoding;

 

currently I am using string replacement scripts on both the php side and the flash side ...

php: convert Č ==> ~C~

flash: convert ~C~ ==> Č

 

which is ugly

Ugh I guess so, I don't know of any other encoding besides utf8 you are trying to use already off hand.

 

Unless there is a way to escape the & character for use in string in flash (Not familiar at all with flash to know) then you may just be set on using the ugly replacement. But if it doesn't take a performance hit why care I guess. Wish I had a better answer. Maybe this will bump it & someone else will see that may know a worka round.

unfortunately, mysql_set_charset is only available on php > 5.? ... therefore:

 

function gf_set_charset ( $argn_charset, $argo_link ) 
  { 

if ( function_exists( 'mysql_set_charset' ) === false) 
      {  mysql_query( 'SET NAMES "' . $argn_charset . '"' , $argo_link ) ;
      }
else
  { mysql_set_charset( $argn_charset , $argo_link ) ;
  } ;

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.