473,769 Members | 6,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

html_entity_dec ode and unicode cyrillic characters

Hi

I have a string such as

Добро"

that shows the cyrillic word "?????" in the browser. Now I played around
with lots of examples and contributed functions in the manual
(html_entity_de code, strtr, convert_cyr_str ing ...) but was not able to
decode these entities. As browsers displays them correctly on my PC and Mac
I think I am missing something...

Somebody can point me to the right direction?

(The problem is: A user posts russian text in an application. The text
arrives at the server encoded like that. Now for security reasons the output
is converted with htmlentities(). So I have to decode the russian entities
before re-encoding them.)

Thanks
Markus
Jul 17 '05
10 7745
R. Rajesh Jeba Anbiah wrote:
Somebody can point me to the right direction?


http://in2.php.net/utf8_encode#49336


Thank you, this works well! I even had come across it before, but as I was
not aware of the UTF-8 header stuff I (and thus got bad results) had not
given it much attention.

--
Markus
Jul 17 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
10416
by: Avnish | last post by:
Hi, I am looking for some form of validation for all the alphanumeric characters in the entire unicode range e.g. the validation should also accept japanese characters but should restrict japanese punctuation marks. I need this validation for atleast for the CJKT range if not possible for the entire unicode range. I can even make use of regular expressions. Also, please note that this validation should be in Javascript
0
2005
by: Dmitry Krivov | last post by:
Hi, Sorry for my english, my native is russian I have an Oracle-nickname in DB2 UDB 7.2 database, but when i'm trying to select fields an returning result set contain ???? instead of cyrillic data. DB2 7.2 database located on mine W2K server. Code page of database is set to 1251 and territory RU Oracle 8.1.7.4 database located on other W2K Server and it's locale is AMERICAN_AMERICA.CL8MSWIN1251.
3
2008
by: Sakcee | last post by:
Hi In one of the data files that I have , I am seeing these characters \xed\xa0\xa0 . They seem to break the xsl. --------------------------------------------------------------- Extra content at the end of the document XML/XSL Error: </data><data ><![CDATA[ í Pls advice ----------------------------------------------------------------
5
4349
by: snapcount | last post by:
When I enter Cyrillic characters into MySQL, it gets converted to ш or something. How do I disable this and is there any workaround? Thanks
3
6222
by: Bruce | last post by:
The ComboBox has a context menu with an option to "Show Unicode Control Characters". How can I use that context menu in a RichTextBox or call that functionality from a RichTextBox? Is there a way to do that. I'd be surprised if that was missing from RichTextBox and only available from a ComboBox. I could really use that with RTL Arabic text.
4
7261
by: phasma | last post by:
Hi, I'm trying extract all alphabetic characters from string. reg = re.compile('(?u)(+)', re.UNICODE) buf = re.match(string) But it's doesn't work. If string starts from Cyrillic character, all works fine. But if string starts from Latin character, match returns only Latin characters. Please, help.
2
3607
by: KK | last post by:
Hello all, There could be flavors of this question discussed in the past, but I could not really make a head/tail out of it. I have bunch of unicode values stored in a string array and I want to see the corresponding characters displayed in an excel file. How could I go about doing that ? vector<stringunicodevalues; // has values 0041, 0042, ... 0410 etc. (hexa decimal values)
6
9431
by: Shiao | last post by:
Hello, I'm trying to build a regex in python to identify punctuation characters in all the languages. Some regex implementations support an extended syntax \p{P} that does just that. As far as I know, python re doesn't. Any idea of a possible alternative? Apart from manually including the punctuation character range for each and every language, I don't see how this can be done. Thank in advance for any suggestions.
0
2051
by: Jams Quiden | last post by:
I have a ESRI personal geodb with Cyrillic, chinese and arabic characters that will not, no matter what client encoding I choose, transfer nicely to PostGIS db. I am using ogr2ogr tools. I am on a windows 7 64 box running 32 bit software (Office 2007, Postgres 1.12.0, with FWtools.) PostGIS db is UTF8 encoding. default for client is the same. I have tried all Cyrillic encodings within FW and PG. I have tried several others as well all to no...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9994
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.