Request results as UTF8.
* foundation.gnome.org/membership/members.wml: Request results as UTF8. svn path=/trunk/; revision=443
This commit is contained in:
		
							parent
							
								
									9faae32393
								
							
						
					
					
						commit
						335aa78974
					
				
					 2 changed files with 9 additions and 0 deletions
				
			
		|  | @ -1,3 +1,8 @@ | ||||||
|  | 2008-06-28  Olav Vitters  <olav@bkor.dhs.org> | ||||||
|  | 
 | ||||||
|  | 	* foundation.gnome.org/membership/members.wml: Request results as | ||||||
|  | 	UTF8. | ||||||
|  | 
 | ||||||
| 2008-04-28  Behdad Esfahbod  <behdad@gnome.org> | 2008-04-28  Behdad Esfahbod  <behdad@gnome.org> | ||||||
| 
 | 
 | ||||||
| 	* foundation.gnome.org/contact/index.wml: | 	* foundation.gnome.org/contact/index.wml: | ||||||
|  |  | ||||||
|  | @ -36,6 +36,10 @@ function get_members_from_sql () { | ||||||
|     $error = "Can not connect to the database."; |     $error = "Can not connect to the database."; | ||||||
|     return FALSE; |     return FALSE; | ||||||
|   } |   } | ||||||
|  |   $result = mysql_query ("SET NAMES 'utf8'", $handle); | ||||||
|  |   if (!$result) { | ||||||
|  |     die ("Unable to run query: ".mysql_error ($handle)); | ||||||
|  |   } | ||||||
| 
 | 
 | ||||||
|   $select_base = mysql_select_db ($mysql_db, $handle);  |   $select_base = mysql_select_db ($mysql_db, $handle);  | ||||||
|   if (!$select_base) { |   if (!$select_base) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Olav Vitters
						Olav Vitters