• Resolved hermit8888

    (@hermit8888)


    I’ve imported the Theme Unit Test XML file offered in the codex, into the Underscores theme I’m working with (Windows7 localhost xxamp stack). When I check my posts I’m noticing that some of the posts are breaking in certain places. For instance in the Template: Sticky post. I get the sentence: The sticky post should be distinctly and then the sentence (along with the rest of the post) abruptly ends. I checked the XML file and noticed that there is a ? character at that spot.

    I checked the XML at:
    https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml
    and see that the ? character is there as well. Is this file corrupted? Or could it be some other issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Film Complet En Francais

    (@film-complet-en-francais)

    Make sure your database is in unicode format UTF-8.

    Thread Starter hermit8888

    (@hermit8888)

    I figured out what was going on. I didn’t right-click the above theme-unit-test-data.xml link and select “save link as” (Windows). Instead I must have copied and pasted, which introduced a bunch of odd characters to the XML.

    The fix:
    1. I had to drop all the tables in the database,
    2. re-install WordPress
    3. re-install/activate the theme
    4. import the proper theme unit test data
    5. re-install plugins
    6. make all the back-end changes that I made before dropping the tables.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme Unit Test Data: ? characters breaking posts’ is closed to new replies.