title: getting strange chars through jquery AJAX function
body: <p>The problem is that im getting strange chars at the beginning of the string.</p>
  
  <p>Here is my code:</p>
  
  <p>PHP Script:</p>
  
  <pre><code>public function get_hotel_phone(){
     $hotel = new HotelModel();
     $query = "SELECT * FROM hotel WHERE id_hotel=" . $_POST['id_hotel'];
     $hotel = $hotel-&gt;execute_query($query);  
     echo $hotel[0]['hotel_phone'];
     return 1;
  }
  </code></pre>
  
  <p>Jquery Script:</p>
  
  <pre><code>function get_hotel_phone(hotel_id){
      $.ajax({
          type: "POST",
          data:"id_hotel=" + hotel_id,
          dataType: "html",
          url: "index.php?controller=Booking&amp;action=get_hotel_phone",                            
          success: function(response){
                      alert(response);
              $("#booking_phone_number").attr("value",response);
              return 1;
          }
      });
  }
  </code></pre>
  
  <p>Screenshots:</p>
  
  <p><a href="http://imageshack.us/photo/my-images/850/7nkz.png/" rel="nofollow">http://imageshack.us/photo/my-images/850/7nkz.png/</a></p>
  
  <p><a href="http://imageshack.us/photo/my-images/163/gltn.png/" rel="nofollow">http://imageshack.us/photo/my-images/163/gltn.png/</a></p>
  
  <p>In the first pic I show the Alert box with the 4 squares.</p>
  
  <p>In the second pic I show the Programmer's tool, and I don't know why I have the 4 red dots with \ufeff there. </p>
  
  <p>I also have coded some Jquery Ajax scripts more and I didn't have anyproblem.</p>
  
  <p>Kind Regards!</p>