seen from United States
seen from Italy
seen from Yemen
seen from Germany
seen from Russia

seen from Australia

seen from United States

seen from Australia
seen from United States
seen from Canada
seen from Australia

seen from Singapore

seen from United States

seen from United States

seen from China

seen from China
seen from Philippines
seen from Russia
seen from Singapore

seen from United States
Fatal error: Call to undefined function mb_strimwidth() in Wordpress Tema Hatası
Fatal error: Call to undefined function mb_strimwidth() in WordPress Tema Hatası
WordPress blogunuz için yeni bir tema indirdiniz, kurup aktif ettiniz ama bir sorun var. Blogunuz da sayfalarınızı dolaşmak isterken Fatal error: Call to undefined function mb_strimwidth() in /home/sitedizininiz/public_html/wp-content/themes/temaniz/header.php on line 15 şeklinde bir hata aldınız.
Temamı bozuk diyorsunuz, maalesef değil. Aslında biraz başınız dertte diyebiliriz. Sorun server…
View On WordPress
パラメータ encoding encoding パラメータには文字エンコーディングを指定します。省略した場合は、 内部文字エンコーディングを使用します。
PHP: mb_regex_encoding - Manual
mb_ereg_replace() 等で使うエンコーディングの指定は、mb_internal_encoding() 関数などを使い内部エンコーディングをコードで指定しても駄目で、php.ini で指定しておく必要がある。
Handling UTF-8 with Codeigniter
For one of the projects I'm working on, I had to write a script that fetches RSS feeds from various sources and stores them in a database periodically. My initial thought was to use SimplePie, and write a PHP script which then gets called repeatedly via CRON. However, given the number of sources I'd have to pull posts from etc, I decided instead to go with Python. The idea was to write the feed parsing bit in Python and then to display these posts using Codeigniter (since that's what the full application was written in)
So, I wrote a quick python script with Universal Feed Parser, which worked great. But, I started noticing that some of the sources I was pulling data from had a lot of UTF-8 characters.
Now, Python is brilliant at handling UTF-8. But PHP... not so much (which hopefully would change with PHP6). I hadn't run into UTF-8 related issues with any of the applications I've developed till now. So this was a bit of a curve ball.
The way to tackle this involves a few steps
Install the "mbstring" PHP extension
Configure your php.ini file to use the extension
Change the database and each of the tables over to UTF-8 (Under MySQL, you can use "utf8_general_ci")
Modify various helpers in Codeigniter to take into account UTF-8 (more details in the liks below)
Optionally, write your own helper to convert UTF-8 characters to regular single byte characters
This sounded like a pretty daunting task at first, but the following blog posts helped me out immensly. Everything listed above is clearly explained in the posts below. Also, pay close attention to the comments under those posts as well, because they have fixes for some "gotchas" the original posters had missed.
http://philsturgeon.co.uk/news/2009/08/UTF-8-support-for-CodeIgniter This covers the database side of things quite a bit
http://www.haughin.com/2010/02/23/building-utf8-compatible-codeigniter-applications This covers more of the PHP side of things and the changes to the Codeigniter helpers
http://hash-bang.net/2009/02/utf8-with-codeigniter Offers a helper function that converts incoming POST data into MySQL compatible UTF8 and convert outgoing text into HTML UTF8 streams.