From dc9d005f21b3e281294f61d4d8e49d0ad003e8fb Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 25 Aug 2010 23:58:52 +0000 Subject: Encoding changes and improvements, particularly to increase compatibility with extended characters in MySQL identifiers (names of dbs/tables/cols): - Move encoding queries and control into MCPKit, with newly cleaned-up methods, and switch a number of locations to using the new code. - Use UTF8 connections for many identifier-based queries (selecting and listing databases, tables, stored procs, table information). This fixes selection and creation of table and database names containing extended characters, also fixing exceptions and errors. - Improve UTF8 over Latin1 to correctly set the client character set encoding as well, fixing custom queries and edits; remove custom code in SPTableContent achieving the same thing in a single location. - Fix database encoding detection routines - Update localisable strings --- Source/SPDatabaseDocument.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Source/SPDatabaseDocument.h') diff --git a/Source/SPDatabaseDocument.h b/Source/SPDatabaseDocument.h index 28ee97ad..07c3f7bb 100644 --- a/Source/SPDatabaseDocument.h +++ b/Source/SPDatabaseDocument.h @@ -139,8 +139,6 @@ NSMenu *selectEncodingMenu; BOOL _supportsEncoding; - NSString *_encoding; - BOOL _encodingViaLatin1; BOOL _isConnected; NSInteger _isWorkingLevel; BOOL _mainNibLoaded; @@ -238,8 +236,6 @@ // Encoding methods - (void)setConnectionEncoding:(NSString *)mysqlEncoding reloadingViews:(BOOL)reloadViews; - (NSString *)databaseEncoding; -- (NSString *)connectionEncoding; -- (BOOL)connectionEncodingViaLatin1:(id)connection; - (IBAction)chooseEncoding:(id)sender; - (BOOL)supportsEncoding; - (void)updateEncodingMenuWithSelectedEncoding:(NSNumber *)encodingTag; -- cgit v1.2.3