Jump to content

litle probem with character coding


Spikowski

Recommended Posts

The problem happens when i send data via an attached php file to the page, it does not display characters as it should.

 

<?php

if(isset($_GET['sec']) && $_GET['sec'] != null) {

switch($_GET['sec']){

case 1: require('asd.php'); break;

case 2: require('asdasd.php'); break;

case 3: require('qwe.php'); break;

case 4: require('qweqwe.php'); break;

default: require('rty.php'); break;

}

} else {

require('yui.php');

}

?>

i dont know what the problem is, if i write something in the html file it displays correctly.

Thanks for any help.

 

 

Link to comment
https://forums.phpfreaks.com/topic/77744-litle-probem-with-character-coding/
Share on other sites

Warning

 

Windows versions of PHP prior to PHP 4.3.0 do not support accessing remote files via this function, even if allow_url_fopen is enabled.

from: http://uk3.php.net/manual/en/function.require.php

 

This probably isn't your problem, but...

What's inside the files?

 

P.S. Use code tags! (#)

can someoen please tell me waht is wrong here? it doesnt dsplay the characters as it should i only displays '?'

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml" lang="pl">

<head>

 

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />

<meta http-equiv="Content-Language" content="pl" />

</head>

<body>

Śiemaż źłó szko ś ćielisz

</body>

</html>

 

thanks

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.