Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 545 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 440 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
garbage text

I uploaded a file . file name is in polish . I'm receiving garbage file name in java class during file upload.
Could you please tell how to fix this ?
I'm trying to save polish file name in database. .. but now garbage text is saved.
where to fix this so that polish text is received at java and saved in db?
Database:SQL Server 2008
table column :nvarchar
please see the screencast :
https://www.dropbox.com/s/ibzm2ngpdzr36qp/Video_Test.wmv?dl=0
at video 1.16 => you see the received file name after file upload in java code. ....this is a garbage text. //I want to receive correct polish text file name.
at video 1.30 => you see the original polish text file.
Answers
-
any input to this ?
-
You haven't posted any code or results in this forum that would allow anyone to provide specific help.
Any 'garbage' you have is the result of using a difference character set that what the data actually is.
So you need to use client and server character sets that are compatible with each other.
-
Could you please watch the dropbox link I posted ? ...... relevant code is there.
rp0428 wrote:You haven't posted any code or results in this forum that would allow anyone to provide specific help.Any 'garbage' you have is the result of using a difference character set that what the data actually is.So you need to use client and server character sets that are compatible with each other.
Did you watch the dropbox video I posted ? Could you please watch it .....that is the "result" I am getting .
regarding compatibility I have the following code .
in Server :
-----------------
request.setCharacterEncoding("UTF-8");
in JSP page :
-----------------
<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<html:form action="/s/planAdd" enctype="multipart/form-data" styleId="planForm1"
method="POST">
I'm uploading file in jsp page . file name is in polish characters.
I'm getting garbage character in server . whats wrong ?
I'm using Struts FormFile for file upload