character-encoding

Corrupted UTF-8 encoding when reading Google feed / alerts

佐手、 提交于 2019-12-24 02:22:34
问题 Whenever I try to read a Google alert via PHP using something like: $feed = file_get_contents("http://www.google.com/alerts/feeds/01445174399729103044/950192755411504138"); Regardless of whether I save the $feed to a file or echo the result to the output, all utf-8 unicode characters ( i.e. those with diacritics) are represented by white space. I have tried - without success - various combinations of: utf8_encode utf8_decode iconv mb_convert_encoding I think the wrong characters have come

iconv returns strange results

微笑、不失礼 提交于 2019-12-24 01:53:36
问题 I'm working on a way to solve the problem with special characters in an automated script for creating accounts in PHP. Since special characters are unwanted in email addresses and other places I'm trying to get rid of them, but I can't remove them before feeding them to the script since the users name has to be displayed properly to other users. Example: Jörgen Götz should get the email address jorgen.gotz@domain.com but in the user database his first name should still be Jörgen and his last

Why does Internet Explorer encode the URL differently when Control-clicking a link

前提是你 提交于 2019-12-24 01:46:08
问题 I'm facing a problem where Internet Explorer (10, but I think I have the same issue with older IEs) will encode a URL differently based on if I click a link normally or if I open it in a new tab by Control-clicking on it. I have made small JSBin to test the issue, and this is what Wireshark shows when I click the link normally : This is what I get when control-clicking : Notice that the "Å" in the URL is encoded differently, "\305" in the first case, and "\303\205" in the second. How to

MySQL UTF8 for Chrome, UTF8 for IE, but HEADER UTF8 for Chrome and UTF-8 for IE?

戏子无情 提交于 2019-12-24 01:44:39
问题 With this: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> IE displays properly Chrome displays properly With this: <meta http-equiv="Content-Type" content="text/html; charset=utf8"> (without the - between f and 8) IE displays èéàä etc. with è$ etc. Chrome displays properly Then I have a SQL Connection (database setted with utf8_unicode_ci or ascii_general_ci) mysqli_set_charset('utf8') IE and Chrome display èéàäö properly when posting the results mysqli_set_charset('utf

PDF text extraction issue - font/capitalization inconsistencies

徘徊边缘 提交于 2019-12-24 01:27:08
问题 I am trying to extract text from a pdf book and continue to run an issue where sections of copied text fail to retain the proper capitalization properties when pasted into a text document. I have rights to reproduce the book and also have a license to use all necessary fonts. At first I thought that the issue was caused by the fonts not being embedded, but I checked and all fonts appear to be subset embedded. Within the pdf there are over 100 fonts used which have one of the following

How to set UTF8 on PHP when connect to ACCESS 2007 (ODBC)

空扰寡人 提交于 2019-12-24 01:18:09
问题 I have Thai,Japan,Korea Character (3 Fields) in Access file. I created a script in PHP to connect to this file but character on display is shown ??????? ??????? and ?????? What to SET to show normal character This is my script <html> <head> <title>TEST</title> </head> <body> <? $objConnect = odbc_connect("test","","") or die("Error Connect to Database"); $strSQL = "SELECT * FROM table1"; $objExec = odbc_exec($objConnect, $strSQL) or die ("Error Execute [".$strSQL."]"); ?> <table width="600"

JavaScript variable to ColdFusion variable

痴心易碎 提交于 2019-12-24 01:14:55
问题 I have a tricky one. By means of a <cfoutput query="…"> I list some records in the page from a SQL Server database. By the end of each line viewing I try to add this in to a record in a MySQL database. As you see is simple, because I can use the exact variables from the output query in to my new INSERT INTO statement. BUT: the rsPick.name comes from a database with a different character set and the only way to get it right into my new database is to read it from the web page and not from the

HTML forms: issues combining charset with enctype in Firefox

给你一囗甜甜゛ 提交于 2019-12-24 01:02:00
问题 I have a Web site with a message board. The board lets people post messages and include attachments. I had a problem where my site was hiccuping every time someone wrote a post with non-Unicode characters. In an effort to solve it, I changed my HTML form code from enctype="multipart/form-data" (as I'm accepting file uploads) to: enctype="multipart/form-data;charset=UTF-8" This solved the character problem. But it broke the file upload capability in Firefox 2 through 3.5. Firefox accepts all

Google AppEngine - How to set default Charset / file-encoding (to UTF-8) for Google AppEngine

南笙酒味 提交于 2019-12-24 00:57:09
问题 Situation I'm using AppEngine Cloud Endpoints (Java) as backendserver for my Android-application. In a Cron-Job the server regularly downloads new data (String), filters out relevant information and sends it via Firebase Cloud Messaging to different topics (by posting HTTP-Request to https://fcm.googleapis.com/fcm/send). The (damn simple) Problem The downloaded text is in German, containing letters like ä,ö,ü,ß and (to not have the famous ?s istead of these characters) I want to change the

how do i get rid of unrecognized characters in utf-8? mysql/php

三世轮回 提交于 2019-12-24 00:54:22
问题 I have a mysql database that's set to utf-8. I have set my php header to: header("Content-Type: text/html; charset=utf-8"); and in my html: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> When I return anything that has round quotes or apostrophes, they show up as unrecognized characters (black diamond with a ? inside). If I run utf8_encode () on the string I'm echoing out, it looks fine in Chrome, but shows a different weird character in Firefox. Is there something else