Questions tagged [mbstring]

MultiByte String in PHP

Related topics:

195 questions
1
vote
2 answers

UTF-8, and mbstring extension in php

While I was converting my latin-1 mysql database into utf-8 i came across this article (http://developer.loftdigital.com/blog/php-utf-8-cheatsheet) please note I have successfully converted my database and my app appears to be working/outputting…
Lizard
  • 43,732
  • 39
  • 106
  • 167
1
vote
3 answers

Fatal error: Call to undefined function mb_strpos()

I got stuck into this problem and I can't seem to find a solution. The version of PHP installed in the server is 5.3.22. After installing Joomla and the default sample data I got this error accessing the web site: Fatal error: Call to undefined…
Eduardo Sanchez-Ros
  • 1,777
  • 2
  • 18
  • 30
1
vote
0 answers

PHP - Fatal Error - Call to undefined function mb_detect_encoding() - mbstring is installed

I'm receiving an error message whilst trying to access PHPMyAdmin on IIS 7.5. I've checked phpinfo and have the following information for mbstring; Multibyte Support: enabled Multibyte string engine: libmbfl HTTP input encoding translation:…
Ant Moore
  • 123
  • 1
  • 12
1
vote
2 answers

UTF-8 text is garbled when form is posted as multipart/form-data in PHP

I have a PHP script to publish articles. It was working perfectly fine until we added the file uploading support. To enable uploading of files, we had to change enctype of tag to multipart/form-data. Now, whenever we try to submit an article with…
1
vote
3 answers

Overriding PHP's Default String Functions with mb_string functions

So I've posted several questions related to making already existing software written in PHP to be updated to support unicode / utf8. One of the solutions is to override PHP's default string functions with PHP's mb_string functions. However, I see a…
J Johnson
  • 168
  • 3
  • 11
1
vote
1 answer

Install mbstring/libmbfl on PHP 5.3.14 (Apache2.2 version) on Windows server

I want to use simpleHTMLDom in my development environment, a Windows server running Apache 2.2 and PHP 5.3.14 (downloaded from Apache). I want to enable mbstring (extension=php_mbstring.dll), but I see the following error in the PHP logs when I…
patrick
  • 11,519
  • 8
  • 71
  • 80
1
vote
1 answer

usage of "mbstring.script_encoding" config

What is the usage of "mbstring.script_encoding" config? Is it diffrent from mbstring.internal_encoding? http://php.net/manual/en/mbstring.configuration.php
Webber
  • 125
  • 7
1
vote
1 answer

substring utf-8 characters with alphanumeric character up to 10 words

I have a problem with getting a substring of this string: GMOクラウドの芦田です。前回、OpenSocialに対応したSNSの「OpenPNE」をインストールしたので、今回はソーシャルアプリを作ってOpenPNE上で公開してみます。また、作ったアプリをmixiアプリとしてmixiにも登録してみましょう。 I just wanted to display up to nth character or at least does not…
Jayson O.
  • 485
  • 1
  • 6
  • 20
1
vote
1 answer

PHP utf-8 best practices and risks for distributed web applications

I have read several things about this topic but still I have doubts I want to share with the community. I want to add a complete utf-8 support to the application I developed, DaDaBIK; the application can be used with different DBMSs (such as MySQL,…
Eugenio
  • 3,195
  • 5
  • 33
  • 49
1
vote
1 answer

What is the preferable character encoding order for "mb_detect_encoding( )" in PHP?

What is the preferable character encoding order to be passed as second argument of mb_detect_encoding( ). I am asking this because some character encoding overlap others like ASCII is returned for UTF (in some cases) and EUC-CN for gb2312, and…
Hamid Sarfraz
  • 1,089
  • 1
  • 14
  • 34
0
votes
1 answer

PHP :mbstring module install

I have tried to install the mbstring module for PHP. I have entered the below commands: yum install php-mbstring /usr/local/apache/bin/apachectl restart Module is now installed but the errors has not dissapeared. Fatal error: Call to undefined…
johann
  • 1,115
  • 8
  • 34
  • 60
0
votes
1 answer

how to enable php mb_string only for 1 host?

I have a centOS machine with cPanel. We have compiled PHP with mb_string and it works fine. We want to disable it in all hosting accounts except one, So we have disabled it in php.ini , but want to enable it in the specific host. I know this is…
Anoosh Ravan
  • 669
  • 1
  • 6
  • 13
0
votes
2 answers

php finding closest space char after mb_substr()

i need to cut the string approximately at 160 characters, but i want to do the cut off through closest space character. The task is worsened by working UTF-8 font (mb_ function). My code is following:
drdarwin
  • 107
  • 11
0
votes
0 answers

PHP mb_strpos of UTF-8 encoded Thai strings

First, want I need: I simply want to get a substring STARTING from '<' (the position of the first '<' character.) AB"); $lt = mb_strpos($s, "<"); $newString =…
ZioBit
  • 905
  • 10
  • 29
0
votes
1 answer

mbstring will not add to my php on windows 10

I need mbstring for something I'm doing. I've followed all the php.ini change directions to enable it and still when I do "php -m" the module is not there. The php_mbstring.dll file is in the ext folder I have two php.ini files, one for dev and…
Dylano236
  • 305
  • 3
  • 15