Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter loquela

    (@loquela)

    Thanks. I sorted it. I need to SET NAMES.

    All works now.

    Hi 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

    Thread Starter loquela

    (@loquela)

    The 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

    Thread Starter loquela

    (@loquela)

    Does anybody know how WordPress displays Japanese characters in the browser?

    Thread Starter loquela

    (@loquela)

    Hi 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?

    Thread Starter loquela

    (@loquela)

    Thanks for this whooami,
    I am pulling posts directly from a wordpress database into another site: https://educationaldesign.co.uk/blog.php

    When 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

Viewing 6 replies - 1 through 6 (of 6 total)