• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controller reading Chinese as parameters Error 400

So I have a controller that reads in a parameter to determine which page to display.
the controller uses a model to retrieve information from the database (articles).

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Articles extends CI_Controller {
function __construct()

public function index($artTitle){
$data['query'] = $this->ArtModel->get_article(urldecode($artTitle));

the Decode URL is there so that the correct information gets sent to the database. And all this works locally. however when I uploaded it to my website, I kept getting a 400, but if the input parameter ($artTitle) are english characters, the pages displays normally.

can anyone tell me why this doesnt work with Chinese characters?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.