Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I build my web sit by wordpress. When i try to add feed function some issue occur.I use chrome visit the feed,log is :
This page contains the following errors:
error on line 134 at column 16: Input is not proper UTF-8, indicate encoding !
Bytes: 0x08 0xE8 0xBF 0x90
Below is a rendering of the page up to the first error.
I have checked the the blank of header.php.I also use fix rss plug-in, but it still can't be fix it. How do I check which file cause the error? my feed url is : http://www.songyang.net/feed/
It looks like the page here has invalid UTF-8 characters in it. The problem lies here:
首先,我们需要创建一个场景。接着在场景中放放置一个灯光, 最后在场景中放置一个物体, 将它上面挂载一个我们创建的组件。
**bad character here**运行程序后, 场景中会出现一个 UI 按钮, 点击它移动立方体。移动的路径通过两个动画拼接完成。
Delete the characters around there and re-type them, that should remove the invalid character.
It tells you where the bad character is because it renders the page up until the character. If you want, you can actually see the character by copy/pasting the section of text into a UTF-8 file in Notepad++. In this case, it comes out as a "BS" character!
bad character.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I've got an Excel file with text in Hindi which I'm trying to read via PHP but I only get gibberish out of it.
When I open the .xls File with Numbers, the text looks like this:
But when I copy and paste this exact text here it looks like this:
ß[+kq'kh ge ij fuHkZj djrh gSAÞ
When I read it via PHP I get exactly the same gibberish text.
Is this an encoding problem in the .xls file and is it somehow possible to extract a UTF-8 encoded version from it?
Jaswinder Singh's comment fixed the Issue!
The text is written in a font called "Kruti Dev 010" which is just normal text but displayed as hindi letters.
By using this tool I could recover the texts to unicode.
Thanks Jaswinder!
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have an app that stores survey responses. Some of the responses are plain-text responses with feedback.
When the person filling the survey out adds a line (his return on the key board) this creates a new paragraph.
It is stored in my Postgres database as an ascii character chr(10) (referring to it in Postgres terms).
This is all fine however the problem I am running into is when I display the values. My PDF printing app doesn't understand this ascii encoding and displays it all as one line. Instead of:
One line
Two lines
Three lines
It returns it as:
One line Two lines three lines
Makes for very long drawn out paragraphs...
I am trying to figure out how I can replace the ascii code with an html break <br/>.
I am obviously familiar with str_replace - the point is that I am not familiar with ascii at all and need some help on how to search for this in the string to replace with an HTML break <br/>.
Thank you.
To replace line breaks with <br />, you can use the built-in PHP function nl2br
e.g.
$content = nl2br($content);
(technically it inserts the BRs before the line breaks, so they're still there, but should work ok)
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
im copying a file from another domain. It does not give me any errors but the files does not get recognized and its different size from the original file. Its the same extension i checked. so im kinda clueless.
if (!copy('http://maholi.com/image/data/Products/Linen - Juvenile and Infant/1440.jpg', $_SERVER['DOCUMENT_ROOT'].'/resources/categories/tttt6.jpg')) {
echo "failed";
}
any ideas?
This works fine for me:
if (!copy('http://maholi.com/image/data/Products/Linen%20-%20Juvenile%20and%20Infant/1440.jpg', $_SERVER['DOCUMENT_ROOT'].'/tttt6.jpg')) {
echo "failed";
}
Edit: URL's are not allowed to contain spaces. See "Is a URL allowed to contain a space?". Your web browser will automatically encode illegal characters, making you believe they are allowed.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I'm getting the error-message while executing a .php-file which has just 177 lines.
Background: this is a Wordperfect-Install, that same page executes fine for other records, but in the record which causes issues, I'm demo-ing some new shortcodes. It is not unlikely that I made a fault in these developments, but that is all done outside of the "crashing" file, so I wonder why it would appear there (and with such a strange line-no.) and not in the source that I modified...
In wp-config.php, I have set define('WP_DEBUG', true);
P.S: The exact error msg is:
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\wp-content\themes\mytheme\single-record.php on line 179
Ok, with the help of fellow dev I found the solution: the guy who wrote the original code had used the short opening tags in PHP '<?' and apparently support for these needs to be enabled in the PHP.INI (which I had not done, 'coz I do not like them). So, after updating all tags to "decent PHP", the error is gone!
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<'
not found in Entity
I am getting this above warning when I am running my project on Ubuntu. The xml response coming without xml tags (< and >). In windows, it is working properly. What is the problem? How can I solve this?
It is also (for some conditions like a empty root tag) a PHP BUG!
https://bugs.php.net/bug.php?id=50661
I am using "PHP Version 5.3.6-13ubuntu3.6" and the bug is there.
The error means you are not passing (valid) XML to DOMDocument::loadXML. To fix it, pass XML to it.