Skip to content

Commit

Permalink
specify UTF-8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Jul 2, 2014
1 parent 26f7e91 commit f6d6e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workflows.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function toxml( $a=null, $format='array' ) {
return false;
endif;

$items = new SimpleXMLElement("<items></items>"); // Create new XML element
$items = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><items></items>'); // Create new XML element

foreach( $a as $b ): // Loop through each object in the array
$c = $items->addChild( 'item' ); // Add a new 'item' element for each object
Expand Down

0 comments on commit f6d6e9b

Please sign in to comment.