Ensure MySQL returns things in UTF-8
This commit is contained in:
		
							parent
							
								
									26d33af6e2
								
							
						
					
					
						commit
						44e48def1d
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -46,6 +46,7 @@ function elec_sql_open () { | ||||||
|     elec_sql_close ($handle); |     elec_sql_close ($handle); | ||||||
|     return FALSE; |     return FALSE; | ||||||
|   } |   } | ||||||
|  |   mysql_query ("SET NAMES 'utf8'", $handle); | ||||||
| 
 | 
 | ||||||
|   return $handle; |   return $handle; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Olav Vitters
						Olav Vitters