Good day. In WordPress, I am trying to display a separate activation page and display it with fancybox using wp_login_form(); . But I fall on the inconsistency of encodings, in fact, here's the code:

  <div> <?php $args = array( 'echo' => true, 'redirect' => home_url(), 'form_id' => 'loginform', 'label_username' => __( 'Username' ), 'label_password' => __( 'Password' ), 'label_remember' => __( 'Remember Me' ), 'label_log_in' => __( 'Log In' ), 'id_username' => 'user_login', 'id_password' => 'user_pass', 'id_remember' => 'rememberme', 'id_submit' => 'wp-submit', 'remember' => true, 'value_username' => NULL, 'value_remember' => true ); wp_login_form( $args );?> <p> <a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Забыли пароль?</a></br> <a href="<?php echo get_option('home'); ?>//wp-login.php?action=register">Зарегистрироваться</a> </p> </div> 

But what is written by me here, namely:

 <a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Забыли пароль?</a></br> 

and

 <a href="<?php echo get_option('home'); ?>//wp-login.php?action=register">Зарегистрироваться</a> 

displayed normally. But the fact that wordpress is automatically generated in the form is displayed as not recognized Unicode.

Here is the actual picture:

alt text

Can anyone explain to me why? All documents are utf-8 encoded without a BOM.

  • You must type <meta charset="utf-8"> in <head> or directly give the header Content-Type: text/html; charset=utf-8 Content-Type: text/html; charset=utf-8 . - etki

2 answers 2

Wordpress uses Win-1251?

Read http://maxsite.org/page/o-kodirovke-wordpress

  • I somewhere wrote about win-1251 used? It seems to have written that all documents are encoded in utf-8 without bom. - Sergalas

Corrected everything by making changes to the admin files themselves. And since it was registration and authorization in wp-login.php. Although I think that the problem is in the files of dictionaries.

  • I have the same problem, you can describe, plz, in which files and what changes did you make? - Rysinsky Valentine