-1
I have a query in which I need to do the column Name
read UTF8 codes.
Here’s the code here:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[MonsterList](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](32) NULL,
[EffectID] [int] NOT NULL,
CONSTRAINT [PK_MonsterList] PRIMARY KEY CLUSTERED
(
[ID] 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
I’ve tried to change the varchar
for nvarchar
, happens that this query pulls files . txt with names of "Monsters" is from a game.
However, when I translate these monsters using accentuation as for example: Dog, Action, etc..., the column Name
or don’t pull the names, or when he pulls the code.
Is there a way I can leave this query reading UTF8 or ANSI codes correctly with accents?