?
Solved

How to convert UTF-8 3 byte to UTF-8 2 byte through PHP?

Posted on 2010-09-06
3
Medium Priority
?
815 Views
Last Modified: 2012-05-10
Hello,

I need to know if there is a way to convert UTF-8 3 byte text to UTF-8 2 byte text through PHP.

Thanks in advance
0
Comment
Question by:jmhabis2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Expert Comment

by:darren-w-
ID: 33610884
0
 
LVL 12

Accepted Solution

by:
Rok-Kralj earned 1500 total points
ID: 33613433
How do you even intend to do that? You can't transform 3 byte utf character to 2 byte utf character...

Define 3 byte text. UTF-8 is not a fixed size encoding, but rather variable size, that means that some characters are 1 byte, some 2 bytes, some even more.
0
 

Author Closing Comment

by:jmhabis2
ID: 33624925
The issue cannot be solved in this matter. Need to reconsider my approach
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question