Control character encode after using jquery autocomplete

Remove the filter wptexturize, which is what’s causing your encoding issue:

remove_filter( 'the_title', 'wptexturize' );
while ( $loop->have_posts() ) {
    // Your code
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)