Ir para conteúdo
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WHMCS problemas nos caracteres após migrar

Featured Replies

Postado

boa noite pessoal

estou fazendo uns testes em um novo servidor, 

instalei o whmcs para testes nele, fiz um dump do mysql no servidor antigo

 

configurei no novo e depois importei o sql no banco

 

o problema é que aparentemente os dois estao em utf8 mas ficou assim

 

Sem_t_tulo.png

 

Isso acontecem em todos os campos que já estavão salvos no banco, como valores, domino de clientes etc

 

Alguem tem alguma luz?

 

Obrigado!


Postado

Na hora de importar, você marcou a caixa do PHPMyAdmin como UTF-8?

 

Também, adicione as seguintes linhas no arquivo /etc/my.cnf:

 

default-character-set=utf8

default-collation=utf8_unicode_ci

character-set-server=utf8

collation-server=utf8_unicode_ci


Postado
  • Autor

Na hora de importar, você marcou a caixa do PHPMyAdmin como UTF-8?

 

Também, adicione as seguintes linhas no arquivo /etc/my.cnf:

 

default-character-set=utf8

default-collation=utf8_unicode_ci

character-set-server=utf8

collation-server=utf8_unicode_ci

 

Obrigado pela resposta cara!

 

 

o começo do dump tá assim

CREATE TABLE `tblaccounts` (  `id` int(10) NOT NULL AUTO_INCREMENT,  `userid` int(10) NOT NULL,  `currency` int(10) NOT NULL,  `gateway` text COLLATE utf8_bin NOT NULL,  `date` datetime DEFAULT NULL,  `description` text COLLATE utf8_bin NOT NULL,  `amountin` decimal(10,2) NOT NULL DEFAULT '0.00',  `fees` decimal(10,2) NOT NULL DEFAULT '0.00',  `amountout` decimal(10,2) NOT NULL DEFAULT '0.00',  `rate` decimal(10,5) NOT NULL DEFAULT '1.00000',  `transid` text COLLATE utf8_bin NOT NULL,  `invoiceid` int(10) NOT NULL DEFAULT '0',  `refundid` int(10) NOT NULL DEFAULT '0',  PRIMARY KEY (`id`),  KEY `invoiceid` (`invoiceid`),  KEY `userid` (`userid`),  KEY `date` (`date`),  KEY `transid` (`transid`(32))) ENGINE=MyISAM AUTO_INCREMENT=112 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

 

UTF8 bin

 

Porem outras linhas estão latin 1 em alguns campos...

 

 

tentei usar a sua dica alterando pra utf8 bin mas não resolveu tb.

 

Estou fazendo uns testes com zpanel.

 

Não seria prokblema com alguma configuração do php etc ?

 

Obrigado!!!


Postado

boa noite pessoal

estou fazendo uns testes em um novo servidor, 

instalei o whmcs para testes nele, fiz um dump do mysql no servidor antigo

 

configurei no novo e depois importei o sql no banco

 

o problema é que aparentemente os dois estao em utf8 mas ficou assim

 

Sem_t_tulo.png

 

Isso acontecem em todos os campos que já estavão salvos no banco, como valores, domino de clientes etc

 

Alguem tem alguma luz?

 

Obrigado!

 

Abra seu configuration.php e verifique se a linha abaixo está "presente".

$mysql_charset = 'utf8';

Postado
  • Autor
$templates_compiledir = 'templates_c/';
$mysql_charset = 'utf8';
 
?>

Postado
  • Autor

Pessoal o problema continua

Será alguma configuração no php?

no arquivo dump sql de origem aparece no começo utf8_bin

 

Como faço pra mudar no banco destino pra esse formato e ver se resolve o problema ?

 

Obrigado!


Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Informação Importante

Concorda com os nossos termos?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.