mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	Merge pull request #4258 from Striffly/patch-3
Support PDF design with UTF-8 characters
This commit is contained in:
		
						commit
						e3357b52f5
					
				@ -22,7 +22,7 @@ trait PdfMakerUtilities
 | 
				
			|||||||
        $document = new DOMDocument();
 | 
					        $document = new DOMDocument();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $document->validateOnParse = true;
 | 
					        $document->validateOnParse = true;
 | 
				
			||||||
        @$document->loadHTML($this->design->html());
 | 
					        @$document->loadHTML(mb_convert_encoding($this->design->html(), 'HTML-ENTITIES', 'UTF-8'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $this->document = $document;
 | 
					        $this->document = $document;
 | 
				
			||||||
        $this->xpath = new DOMXPath($document);
 | 
					        $this->xpath = new DOMXPath($document);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user