This question is locked. New answers and comments are not allowed.
I have porblem with ä,ö chars. It's seems that open access use ut8 as default then connect to the database. Now it's stripp string then it encounter ä char.
I have tried to give Charset=XXX parameter in the connection string but i get this message
System.ArgumentException: Keyword not supported: 'charset'.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps).
My connection string is
<connectionStrings>
<add name="TestEntityDiagrams" connectionString="data source=vla2003;charset=Latin1;initial catalog=test;integrated security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
There is the right place to put charset parameter so that's work.
Br
Vesa
I have tried to give Charset=XXX parameter in the connection string but i get this message
System.ArgumentException: Keyword not supported: 'charset'.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps).
My connection string is
<connectionStrings>
<add name="TestEntityDiagrams" connectionString="data source=vla2003;charset=Latin1;initial catalog=test;integrated security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
There is the right place to put charset parameter so that's work.
Br
Vesa
10 Answers, 1 is accepted
0
Hi Vesa,
Thomas
the Telerik team
that is right, the SqlClient from the .NET framework does not support a CharSet setting, and therefore you get an argument exception. It does support a Current Language setting, and you might want to try that with
Current Language=Swedish
Please make also sure that the values are correct when storing them, there could also be a problem with the browser-server setup.
Thomas
the Telerik team
0

Vesa
Top achievements
Rank 1
answered on 13 Jan 2011, 05:51 PM
Hello.
I have tried to use Current Language=Swedish but it's not working. The result is same that open access strip the String.
I try to save street address as "Tegelbruksvägen 2" but get reslut in database after insert "Tegelbruksv".
In microsoft pure linq to sql entities it's working ok without changes to ordinary connectionstring. It's use databse default that is latin1 then i hade made that database. It would be nice if open acces could use database default instead of it's utf8 as default. Now it's working only out of the box in us and english countries but others do get problems. Is there any other way to configure orm to not use default charset utf8.
Hope that telerik could fix this because i like open access orm but if can't get other charset to work i can't use it.
Hope you in telerik can fix this.
Br
Vesa
I have tried to use Current Language=Swedish but it's not working. The result is same that open access strip the String.
I try to save street address as "Tegelbruksvägen 2" but get reslut in database after insert "Tegelbruksv".
In microsoft pure linq to sql entities it's working ok without changes to ordinary connectionstring. It's use databse default that is latin1 then i hade made that database. It would be nice if open acces could use database default instead of it's utf8 as default. Now it's working only out of the box in us and english countries but others do get problems. Is there any other way to configure orm to not use default charset utf8.
Hope that telerik could fix this because i like open access orm but if can't get other charset to work i can't use it.
Hope you in telerik can fix this.
Br
Vesa
0

Vesa
Top achievements
Rank 1
answered on 13 Jan 2011, 05:55 PM
I forget to mention that i 'm testing orm from visualstudio 2008 as console app project so i'm not using any browser as gui to this test.
br
Vesa
br
Vesa
0
Hi Vesa,
strange thing. We are not setting utf-8 anywhere explicitly. I will into this on monday.
All the best,
Thomas
the Telerik team
strange thing. We are not setting utf-8 anywhere explicitly. I will into this on monday.
All the best,
Thomas
the Telerik team
0
Hi Vesa,
Thomas
the Telerik team
can you give us a database setup script that creates such a 'skandinavian' database? Again, we are not setting UTF8 on the client side.
Best wishes,Thomas
the Telerik team
0

Vesa
Top achievements
Rank 1
answered on 17 Jan 2011, 07:47 PM
USE [master]
GO
/****** Object: Database [test] Script Date: 01/17/2011 20:42:34 ******/
CREATE DATABASE [test] ON PRIMARY
( NAME = N'test', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\test.mdf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'test_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\test_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [test] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [test].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [test] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [test] SET ANSI_NULLS OFF
GO
ALTER DATABASE [test] SET ANSI_PADDING OFF
GO
ALTER DATABASE [test] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [test] SET ARITHABORT OFF
GO
ALTER DATABASE [test] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [test] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [test] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [test] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [test] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [test] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [test] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [test] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [test] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [test] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [test] SET DISABLE_BROKER
GO
ALTER DATABASE [test] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [test] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [test] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [test] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [test] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [test] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [test] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [test] SET READ_WRITE
GO
ALTER DATABASE [test] SET RECOVERY FULL
GO
ALTER DATABASE [test] SET MULTI_USER
GO
ALTER DATABASE [test] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [test] SET DB_CHAINING OFF
GO
GO
/****** Object: Database [test] Script Date: 01/17/2011 20:42:34 ******/
CREATE DATABASE [test] ON PRIMARY
( NAME = N'test', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\test.mdf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'test_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\test_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [test] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [test].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [test] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [test] SET ANSI_NULLS OFF
GO
ALTER DATABASE [test] SET ANSI_PADDING OFF
GO
ALTER DATABASE [test] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [test] SET ARITHABORT OFF
GO
ALTER DATABASE [test] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [test] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [test] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [test] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [test] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [test] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [test] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [test] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [test] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [test] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [test] SET DISABLE_BROKER
GO
ALTER DATABASE [test] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [test] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [test] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [test] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [test] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [test] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [test] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [test] SET READ_WRITE
GO
ALTER DATABASE [test] SET RECOVERY FULL
GO
ALTER DATABASE [test] SET MULTI_USER
GO
ALTER DATABASE [test] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [test] SET DB_CHAINING OFF
GO
0

Vesa
Top achievements
Rank 1
answered on 17 Jan 2011, 07:49 PM
Database script that makes tables.
USE [test]
GO
/****** Object: Table [dbo].[customer] Script Date: 01/17/2011 20:49:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[customer](
[cusid] [varchar](10) NOT NULL,
[firstname] [varchar](255) NULL,
[lastname] [varchar](255) NULL,
CONSTRAINT [PK_customer] PRIMARY KEY CLUSTERED
(
[cusid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[teltype] Script Date: 01/17/2011 20:49:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[teltype](
[typeid] [int] IDENTITY(1,1) NOT NULL,
[description] [nchar](10) NOT NULL,
CONSTRAINT [PK_teltype] PRIMARY KEY CLUSTERED
(
[typeid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[telefone] Script Date: 01/17/2011 20:49:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[telefone](
[telid] [uniqueidentifier] NOT NULL,
[cusid] [varchar](10) NOT NULL,
[tnumber] [varchar](50) NOT NULL,
[typeid] [int] NOT NULL,
CONSTRAINT [PK_telefone] PRIMARY KEY CLUSTERED
(
[telid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[address] Script Date: 01/17/2011 20:49:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[address](
[addressid] [int] NOT NULL,
[cusid] [varchar](10) NOT NULL,
[street] [nchar](10) NOT NULL,
CONSTRAINT [PK_address] PRIMARY KEY CLUSTERED
(
[addressid] ASC,
[cusid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: ForeignKey [FK_address_customer] Script Date: 01/17/2011 20:49:08 ******/
ALTER TABLE [dbo].[address] WITH CHECK ADD CONSTRAINT [FK_address_customer] FOREIGN KEY([cusid])
REFERENCES [dbo].[customer] ([cusid])
GO
ALTER TABLE [dbo].[address] CHECK CONSTRAINT [FK_address_customer]
GO
/****** Object: ForeignKey [FK_telefone_customer] Script Date: 01/17/2011 20:49:08 ******/
ALTER TABLE [dbo].[telefone] WITH CHECK ADD CONSTRAINT [FK_telefone_customer] FOREIGN KEY([cusid])
REFERENCES [dbo].[customer] ([cusid])
GO
ALTER TABLE [dbo].[telefone] CHECK CONSTRAINT [FK_telefone_customer]
GO
/****** Object: ForeignKey [FK_telefone_teltype] Script Date: 01/17/2011 20:49:08 ******/
ALTER TABLE [dbo].[telefone] WITH CHECK ADD CONSTRAINT [FK_telefone_teltype] FOREIGN KEY([typeid])
REFERENCES [dbo].[teltype] ([typeid])
GO
ALTER TABLE [dbo].[telefone] CHECK CONSTRAINT [FK_telefone_teltype]
GO
USE [test]
GO
/****** Object: Table [dbo].[customer] Script Date: 01/17/2011 20:49:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[customer](
[cusid] [varchar](10) NOT NULL,
[firstname] [varchar](255) NULL,
[lastname] [varchar](255) NULL,
CONSTRAINT [PK_customer] PRIMARY KEY CLUSTERED
(
[cusid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[teltype] Script Date: 01/17/2011 20:49:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[teltype](
[typeid] [int] IDENTITY(1,1) NOT NULL,
[description] [nchar](10) NOT NULL,
CONSTRAINT [PK_teltype] PRIMARY KEY CLUSTERED
(
[typeid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[telefone] Script Date: 01/17/2011 20:49:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[telefone](
[telid] [uniqueidentifier] NOT NULL,
[cusid] [varchar](10) NOT NULL,
[tnumber] [varchar](50) NOT NULL,
[typeid] [int] NOT NULL,
CONSTRAINT [PK_telefone] PRIMARY KEY CLUSTERED
(
[telid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[address] Script Date: 01/17/2011 20:49:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[address](
[addressid] [int] NOT NULL,
[cusid] [varchar](10) NOT NULL,
[street] [nchar](10) NOT NULL,
CONSTRAINT [PK_address] PRIMARY KEY CLUSTERED
(
[addressid] ASC,
[cusid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: ForeignKey [FK_address_customer] Script Date: 01/17/2011 20:49:08 ******/
ALTER TABLE [dbo].[address] WITH CHECK ADD CONSTRAINT [FK_address_customer] FOREIGN KEY([cusid])
REFERENCES [dbo].[customer] ([cusid])
GO
ALTER TABLE [dbo].[address] CHECK CONSTRAINT [FK_address_customer]
GO
/****** Object: ForeignKey [FK_telefone_customer] Script Date: 01/17/2011 20:49:08 ******/
ALTER TABLE [dbo].[telefone] WITH CHECK ADD CONSTRAINT [FK_telefone_customer] FOREIGN KEY([cusid])
REFERENCES [dbo].[customer] ([cusid])
GO
ALTER TABLE [dbo].[telefone] CHECK CONSTRAINT [FK_telefone_customer]
GO
/****** Object: ForeignKey [FK_telefone_teltype] Script Date: 01/17/2011 20:49:08 ******/
ALTER TABLE [dbo].[telefone] WITH CHECK ADD CONSTRAINT [FK_telefone_teltype] FOREIGN KEY([typeid])
REFERENCES [dbo].[teltype] ([typeid])
GO
ALTER TABLE [dbo].[telefone] CHECK CONSTRAINT [FK_telefone_teltype]
GO
0

Vesa
Top achievements
Rank 1
answered on 17 Jan 2011, 07:54 PM
Hello.
After you have made the database change collaction to SQL_Latin1_General_CP1_CI_AS from properties option dialog.
Br
Vekku
After you have made the database change collaction to SQL_Latin1_General_CP1_CI_AS from properties option dialog.
Br
Vekku
0

Vesa
Top achievements
Rank 1
answered on 17 Jan 2011, 08:10 PM
Hello Thomas.
I have fixed the problem it was my miss in street column type. It was nchar(10) and in this case orm stripped it as it should do because string was too long.
The right type is varchar(255). I changed it and now it works like a charm (All äöå chars working). What i learned from this you should never made your database design in hurry :(.
Br
Vesa
I have fixed the problem it was my miss in street column type. It was nchar(10) and in this case orm stripped it as it should do because string was too long.
The right type is varchar(255). I changed it and now it works like a charm (All äöå chars working). What i learned from this you should never made your database design in hurry :(.
Br
Vesa
0
Hello Vesa,
Thomas
the Telerik team
thanks for notifying us of the problem solution.
Kind regards,Thomas
the Telerik team