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

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!
Eduardo FuerteDeveloper and AnalystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
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/
Marco GasiFreelancerCommented:
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?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eduardo FuerteDeveloper and AnalystAuthor 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.
Get a highly available system for cyber protection

The Acronis SDI Appliance is a new plug-n-play solution with pre-configured Acronis Software-Defined Infrastructure software that gives service providers and enterprises ready access to a fault-tolerant system, which combines universal storage and high-performance virtualization.

Eduardo FuerteDeveloper and AnalystAuthor Commented:
I'm observing a little more to try catch the error again and better get the circunstances.
Marco GasiFreelancerCommented:
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 AnalystAuthor Commented:
Hi Marco

Just a query with special characters in the string used in the where clause.
Marco GasiFreelancerCommented:
Can you give me an example?
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Amazingly the error didn't reproduced again.
Marco GasiFreelancerCommented:
When we need errors they always stay hidden :-D
Eduardo FuerteDeveloper and AnalystAuthor Commented:
You're absolutelly right.... something else I did after that I'm trying to remember... sorry!
Marco GasiFreelancerCommented:
Don't be sorry at all: the bug ha gone, so be happy :-)
Eduardo FuerteDeveloper and AnalystAuthor 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 GasiFreelancerCommented:
Lol :-D
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Thanks for help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.