loquela
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Displaying Japanese chractersThanks. I sorted it. I need to SET NAMES.
All works now.
Forum: Everything else WordPress
In reply to: problem uploading musicHi there,
Do you have acecss to your doc root? if so, is there a file in there called php.ini?
If there is take a look at it. You need it to have a line in it:
upload_max_filesize = 30M ;
and perhaps also:
post_max_size = 30M ;
To check your environment’s php settings create a file called phpinfo.php that contains this line: <?php phpinfo() ?> and go to https://www.yoursite/phpinfo.php
Hope this helps
Forum: Everything else WordPress
In reply to: Displaying Japanese chractersThe site I am working on is here:
A) https://chonanclegg.co.uk/photography – this the WordPress installation and everything works fine.B)https://chonanclegg.co.uk – contains the index.php that I am struggling with. The encoding is correct and this page has no problems displaying Japanese text normally. The h1 is hard-coded into the page and displays perfectly. However the text that is brought in from the WordPress db above displays as ???
Both sites are on the same server, both query the same database, both have the same document encoding. can anybody figure out what I am doing wrong that WordPress is dong right?
May thanks,
Simon
Forum: Everything else WordPress
In reply to: Displaying Japanese chractersDoes anybody know how WordPress displays Japanese characters in the browser?
Forum: Everything else WordPress
In reply to: Displaying Japanese chractersHi Samboll,
Thanks for your response. I’m not actually having problems writing and displaying Japanese in WordPress, that all works fine. What I’m trying to figure out is how WordPress actually manages to display Japanese text in the browser:I have wp 2.6.3 and my db table collocation is already set to utf8_unicode_ci all the Japanese text in the database is displaying perfectly. The problem is when I connect to the db from outsite wp and try to display the results, I get the ????? output. Again, the page encoding is
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />I am display my query results with <?php echo $row_photography[‘post_title’]; ?> so I presume I need to do something with the print statement? How does WordPress do it?
Forum: Fixing WordPress
In reply to: code view and <p> tagsThanks for this whooami,
I am pulling posts directly from a wordpress database into another site: https://educationaldesign.co.uk/blog.phpWhen I do this the line breaks or rather paragraphs don’t show in the HTML.
I suppose I need some kind of regular expression to convert the \n to <p> or <br> (?) but my php knowledge needs a boost. Could anyone offer any help? Please?
Many thanks,
Simon