/[drupal]/contributions/modules/coolfilter/mbstring.php
ViewVC logotype

Contents of /contributions/modules/coolfilter/mbstring.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Wed Feb 14 02:51:02 2007 UTC (2 years, 9 months ago) by lllkkk
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5, DRUPAL-5--2
Changes since 1.1: +15 -15 lines
File MIME type: text/x-php
Add .install file and hack for drupal 5.1
1 <?php
2 require_once('phprpc_server.php');
3
4 function mb_urlencode($url, $charset) {
5 $len = mb_strlen($url, $charset);
6 $result = "";
7 for ($i = 0; $i < $len; $i++) {
8 $c = mb_substr($url, $i, 1, $charset);
9 if (strlen($c) > 1) $c = urlencode($c);
10 $result .= $c;
11 }
12 return $result;
13 }
14
15 new phprpc_server(array('mb_urlencode', 'mb_convert_encoding'));
16 ?>

  ViewVC Help
Powered by ViewVC 1.1.2