This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: SQL Scripts with Chinese Characters ??????
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 17, 2008
11:03 PM
SQL Scripts with Chinese Characters ??????
Hi All, Long time reader first time poster (bla bla bla).
The database for our application has a dictionary table in it. Which contains multiple languages (currently it is only english and simplified chinese). The current install i am creating will install this database to the clients computer.
The problem is that when i use the Database Import Wizard and import the database the characters only show up as question mark characters (???????/????). Is there anyway to fix this or at least get around it?
Thanks
The database for our application has a dictionary table in it. Which contains multiple languages (currently it is only english and simplified chinese). The current install i am creating will install this database to the clients computer.
The problem is that when i use the Database Import Wizard and import the database the characters only show up as question mark characters (???????/????). Is there anyway to fix this or at least get around it?
Thanks
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 18, 2008
01:45 AM
Please select the Unicode file format on the Advanced Scripting Options panel, and see if it solves your issue.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 20, 2008
11:08 PM
I dont seem to have the advanced scripting tab. All the tabs i can see are General, Script, Runtime, Database Import, Text Replacement. There is an advanced tab on SQL connections but it does not allow you to select a file format.
Any ideas?
Thanks
Any ideas?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 21, 2008
09:15 AM
I am referencing to the Advanced Scripting Options panel on the Database Import Wizard.
Thanks.
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2008
12:39 AM
Thanks for your reply. I can now see the chinese characters in my script, GREAT. (have to modify the script in another editor because installshield cannot edit that format)
The problem is that i now run the script, it runs through fine, but the records inserted still have all the chinese characters converted to "???" format.
Here is the insert record produced:
********************
INSERT INTO [dbo].[ChangeNameNew] ([ChangeNameID],[ParentName],[ParentType],[ControlName],[DefaultValue],[Conversion],[GridControlName],[IsMessageBox],[IsMultiValue],[CreatedByContactID],[CreatedDateTime],[ModifiedByContactID],[ModifiedDateTime],[LanguageNameID])
VALUES (53099,'Asset Downtime by Month','Report','Text29','Aug','八月','',0,0,1,'2008-04-15 16:41:49.480',1,'2008-04-16 08:11:44.703',98)
GO
********************
The thing is that if i execute this insert statement through my SQL enterprise manager it does the same thing and changes the characters to "??". So at this level installshield isnt the problem. Is there a property that i should be setting on my database for this insert statement (i can cut and paste chinese characters into the db tables, just doesnt like insert statements).
Any ideas?
Thanks
The problem is that i now run the script, it runs through fine, but the records inserted still have all the chinese characters converted to "???" format.
Here is the insert record produced:
********************
INSERT INTO [dbo].[ChangeNameNew] ([ChangeNameID],[ParentName],[ParentType],[ControlName],[DefaultValue],[Conversion],[GridControlName],[IsMessageBox],[IsMultiValue],[CreatedByContactID],[CreatedDateTime],[ModifiedByContactID],[ModifiedDateTime],[LanguageNameID])
VALUES (53099,'Asset Downtime by Month','Report','Text29','Aug','八月','',0,0,1,'2008-04-15 16:41:49.480',1,'2008-04-16 08:11:44.703',98)
GO
********************
The thing is that if i execute this insert statement through my SQL enterprise manager it does the same thing and changes the characters to "??". So at this level installshield isnt the problem. Is there a property that i should be setting on my database for this insert statement (i can cut and paste chinese characters into the db tables, just doesnt like insert statements).
Any ideas?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2008
03:13 PM
Try using an N prefix for the string value as highlighted in red below, and see if it fixes the problem:
********************
INSERT INTO [dbo].[ChangeNameNew] ([ChangeNameID],[ParentName],[ParentType],[ControlName],[DefaultValue],[Conversion],[GridControlName],[IsMessageBox],[IsMultiValue],[CreatedByContactID],[CreatedDateTime],[ModifiedByContactID],[ModifiedDateTime],[LanguageNameID])
VALUES (53099,'Asset Downtime by Month','Report','Text29','Aug',N'八月','',0,0,1,'2008-04-15 16:41:49.480',1,'2008-04-16 08:11:44.703',98)
GO
********************
********************
INSERT INTO [dbo].[ChangeNameNew] ([ChangeNameID],[ParentName],[ParentType],[ControlName],[DefaultValue],[Conversion],[GridControlName],[IsMessageBox],[IsMultiValue],[CreatedByContactID],[CreatedDateTime],[ModifiedByContactID],[ModifiedDateTime],[LanguageNameID])
VALUES (53099,'Asset Downtime by Month','Report','Text29','Aug',N'八月','',0,0,1,'2008-04-15 16:41:49.480',1,'2008-04-16 08:11:44.703',98)
GO
********************