Solved

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

Posted on 2010-09-06
3
786 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
3 Comments
 
LVL 13

Expert Comment

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

Accepted Solution

by:
Rok-Kralj earned 500 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

759 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now