top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

gibberish output when using the loadHTMLFile() function in PHP

+2 votes
258 views

When I'm trying to load an external html document with the loadHTMLFile() function and then I use the saveHTML() function to output its content, some text in the external html document which is written in non english is displayed in a gibberish format.
Is anyone here has an idea how to solve this problem?

posted Aug 11, 2013 by Bob Wise

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+3 votes

Say I have sent a command to a process using the fwrite command something like

...
while (true) {
 switch (expect_expectl($stream, $cases)) {
 case "ls":
 fwrite($stream, "ls -aln");
 break;
..

Is there a way I can save the output from that process to a variable ?

+1 vote

I am trying to execute the following but he does not execute me well. Which will be able to be the problem?

$sql = "insert into scele (codigo, nombre) values (?, ?)";
$param = "1, Test1";

$tr = ibase_trans(IBASE_WRITE,$this->cn);
$qr = ibase_prepare($tr,$param);
$this->rs = ibase_execute($sql,$param);
if ($this->rs){
 //Evaluate this condition, but he does not enter here 
}
...