[wp-testers] Upload Field Is Not UTF-8

Roy Schestowitz wp-lowtraffic at schestowitz.com
Sat Jan 14 21:37:05 GMT 2006


_____/ On Sat 14 Jan 2006 20:59:53 GMT, [Leo Li] wrote : \_____

> Howdy all,
>
> I have this strange problem which doesn't affect much when use, but just
> doesn't looks right. That field is encoded as GB2312 (Simplified Chinese)
> while I set the whole wordpress encoded as UTF-8. So the upload field shows
> whole bunch of mojibake, lol...
>
> Any ideas? Or it's my host's problem?
>
> --
> <?php
> echo "This is from Leo Li";
> ?>

Hi Leo,

In the latest build, I have looked under inline-uploading.php and there is
nothing suspicious therein. Which browser are you using? What charset is it
set to use? What is your Web site's URL (if public)? I can attempt to
reproduce the error or view yours from here, assuming you can save the
panel as a static page and post it as public. I also wonder what
blog_charset is assigned to. Everything is either UTF-8 or user-customised.

roy at BAINE:~/public_html/wordpress> fgrep -r "encoding" *
wp-admin/import/blogger.php:                                  
'blog-formatting' =>
array('timeStampFormat' => '0', 'encoding'=>'UTF-8',
'convertLineBreaks'=>
'false', 'floatAlignment'=>'false'),
wp-admin/import/dotclear.php: Taken from
http://www.php.net/manual/fr/function.mb-detect-encoding.php#50087
wp-admin/import/dotclear.php://    utf8 encoding validation developed based
on Wikipedia entry at:
wp-admin/options-reading.php:<?php _e('The character encoding you write your
blog in (UTF-8 is <a
href="http://developer.apple.com/documentation/macos8/TextInt
lSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html">recommended</a>)')
?></td>
wp-atom.php:<?php echo '<?xml version="1.0"
encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
wp-commentsrss2.php:echo '<?xml version="1.0"
encoding="'.get_settings('blog_charset').'"?'.'>';
wp-includes/js/tinymce/tiny_mce_gzip.php:       entity_encoding : "raw",
wp-includes/js/tinymce/tiny_mce.js:     this.defParam("encoding", "");
wp-includes/js/tinymce/tiny_mce.js:     this.defParam("entity_encoding",
"named");
wp-includes/js/tinymce/tiny_mce.js:             if
(tinyMCE.settings["encoding"] == "xml" || tinyMCE.settings["encoding"] ==
"html")
wp-includes/js/tinymce/tiny_mce.js:             if
(tinyMCE.settings['entity_encoding'] == "numeric") {
wp-includes/js/tinymce/tiny_mce.js:             if
(tinyMCE.settings['entity_encoding'] == "raw") {
wp-includes/rss-functions.php:  // use gzip encoding to fetch rss files if
supported?
wp-includes/class-snoopy.php:   Purpose:        Prepare post body according
to encoding type
wp-rdf.php:<?php echo '<?xml version="1.0"
encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
wp-rss.php:<?php echo '<?xml version="1.0"
encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
wp-rss2.php:<?php echo '<?xml version="1.0"
encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
wp-trackback.php:               echo '<?xml version="1.0"
encoding="utf-8"?'.">\n";
wp-trackback.php:               echo '<?xml version="1.0"
encoding="utf-8"?'.">\n";
wp-trackback.php:if ( function_exists('mb_convert_encoding') ) { // For
international trackbacks
wp-trackback.php:       $title     = mb_convert_encoding($title,
get_settings('blog_charset'), $charset);
wp-trackback.php:       $excerpt   = mb_convert_encoding($excerpt,
get_settings('blog_charset'), $charset);
wp-trackback.php:       $blog_name = mb_convert_encoding($blog_name,
get_settings('blog_charset'), $charset);
xmlrpc.php:<?php echo '<?xml version="1.0"
encoding="'.get_settings('blog_charset').'"?'.'>'; ?>



More information about the wp-testers mailing list