Couls you point a way to make Codeigniter to consider the UTF-8 characters in config.php?

Eduardo Fuerte
Eduardo Fuerte used Ask the Experts™
on
Hi Experts

Couls you point a way to make Codeigniter to consider the UTF-8 characters in config.php?

// Actually using
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

//I'm trying to avoid to accept every character here - only UTF-8
//$config['permitted_uri_chars'] = '';

Open in new window


Thanks in advance!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014
Commented:
I'm not sure I understand the question.  But I do know that UTF-8 covers over a million characters, mostly non-English ones.  In addition, UTF-8 like most character sets include the ASCII 7-bit characters as the first 128 characters (codes 0 thru 127).  My best resource for character sets:  http://www.alanwood.net/
Freelancer
Top Expert 2010
Commented:
Maybe I'm wrong, but AFAIK character set differs in the type of chars they are able to recognize and currently we all usually prefer to use utf-8 because it is able to manage the most part (if not all) known alphabets.

Codeigniter by default uses utf-8, so I'm not sure your question make sense.

We use utf-8 not to limit characters processong but to extend it...
Can you be more descriptive about your goal?
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Hi

The problem I had is: when using PHPExcel and the sheet to be saved uses special characters an error arises (unfortunatelly I didn't captured the picture)

But after return back to:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

The error didn't reproduced.
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

Eduardo FuerteDeveloper and Analyst

Author

Commented:
I'm observing a little more to try catch the error again and better get the circunstances.
Marco GasiFreelancer
Top Expert 2010

Commented:
Let me ask: why do you want  set permitted URI chars to utf-8? What is the issue you want solve or prevent?
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Hi Marco

Just a query with special characters in the string used in the where clause.
Marco GasiFreelancer
Top Expert 2010

Commented:
Can you give me an example?
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Amazingly the error didn't reproduced again.
Marco GasiFreelancer
Top Expert 2010

Commented:
When we need errors they always stay hidden :-D
Eduardo FuerteDeveloper and Analyst

Author

Commented:
You're absolutelly right.... something else I did after that I'm trying to remember... sorry!
Marco GasiFreelancer
Top Expert 2010

Commented:
Don't be sorry at all: the bug ha gone, so be happy :-)
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Don't Worry Be Happy
Bobby McFerrin
Here's a little song I wrote
You might want to sing it note-for-note
Don't worry, be happy
In every life we have some trouble
But when you worry, you make it double
Don't worry, be happy Don't worry, be happy now
Ooo-oo-hoo-hoo-oo hoo-hoo-oo-oo-oo-oo-ooo Don't worry
Woo-oo-woo-oo-woo-oo-ooo Be happy
Woo-oo-oo-oo-ooo Don't worry, be happy
Ooo-oo-hoo-hoo-oo hoo-hoo-oo-oo-oo-oo-ooo Don't worry
Woo-oo-woo-oo-oo-oo-ooo Be happy
Woo-oo-woo-oo-ooo Don't worry, be happy
Ain't got no place to lay your head
Somebody came and took your bed
Don't worry, be happy
The landlord say your rent is late
He may have to litigate
Don't worry, (ha-ha ha-ha ha-ha) be happy (look at me, I'm happy)
Ooo-oo-hoo-hoo-oo oo-oo-oo-oo-oo-oo-ooo Don't worry
Oo-oo-oo-oo-oo-oo-ooo Be… Letras completas no Google Play Música

Open in new window

Marco GasiFreelancer
Top Expert 2010

Commented:
Lol :-D
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Thanks for help!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial