Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Can Input Japanese, Can't Pull It Out


I figured out how to store Japanese characters by setting the collation of a particular field to utf8_bin. I can input Japanese characters, and I can see them just fine under PHPMyAdmin.

The problem is that when I execute a query and print them to a web page, all I get is question marks instead of Japanese characters. This is while using the same browser that allows PHPmyAdmin to display the characters correctly.

I added the following metadata to the <head> portion of the document but it didn't help:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />




View Complete Forum Thread with Replies

Related Forum Messages:
Japanese In MySQL
When I try to store Japanese characters in my mysql database, I do not
get the correct characters. The entry of the field is "???" instead of
the Japanese character. I tried to store the character with my java
application and with the MySQL Control Center. I know I have to
configure the mysql database. But I do not know how. I created my
database with the following sql statements:

CREATE TABLE vocab
(
Japanese VARCHAR(100) CHARACTER SET utf8,
German VARCHAR(100) CHARACTER SET utf8
);

But this did not work.

View Replies !
Japanese Char
I am not able to store Japanese chars in mysql database. what should I do to work this out ?

View Replies !
Japanese Character
In my mysql database i have stored accounts name in japanese character. All accounts has been displayed in a page sort by name. So i use "ORDER BY name" in my query. But my client complain that the names are not sorted correctly.
Is there anything i have to do in case of japanese or non-english character sorting?

View Replies !
Japanese Characters And Jsp
I am building a site for a client in both japanese and english. I was wondering if anybody could give me some basic pointers or can direct me to a tutorial online. I am using tomcat 5.0 and MySQL 4.02.

The research that I can find has let me to believe that I need 4.1 to support full unicode or there are hacks that will do it in lower versions such as defining varchar column types as binary. I've done this and still have problems viewing or returning data correctly. I wish that i could upgrade to 4.1 to make my life simpler, but my hosting company will not do the upgrade for some time.

I am wondering if there are things that i need to do to my java query? Is there a way around this where i can use the same query and dataconnector class that i have now to return japanese and english?

View Replies !
Mysql 4.1.14 With Japanese
I am using mysql on Gentoo Linux. Until yesterday I could use Japanese messages with mysql with phpBB without any problem, but since I upgraded mysql to 4.1.14, I cannot handle Japanese characters properly (maybe 4.0.xx or something..).

For example, if I try to enter Japanese strings into phpBB, it says:
-------------------
Could not insert new word matches

DEBUG MODE

INSERT INTO phpbb_search_wordmatch (post_id, word_id, title_match) SELECT 3, word_id, 0 FROM phpbb_search_wordlist WHERE word_text IN ('テスト')

Line : 251
File : functions_search.php
-------------------

I think this is due to lack of Japanese support on my server. How can I do it? I want to use ujis and preferably utf-8 also...

View Replies !
Pull All Records
if it were possible to write a statement in SQL where one could select several fields from a table and then limit the records returned by only displaying those where, say, FieldA (a varchar) contains a given short string which could be only a part of the field's contents. As long as a record has this short string in Field A, it should be included in the resulting set of records.Something like this:

SELECT FieldA, FieldB, FieldC
FROM TABLE Table1
WHERE FieldA *contains string*

Is there anything in SQL that could examine the contents of a field for a partial string, and then return the records that have that partial string in that field?

View Replies !
Pull All Usernames
Say I want to pull all usernames beginning with the letter A. How can I do so?

View Replies !
Multiple DB Pull
Lets say there is a database of special users and a database of favorite movies

SPECIAL USERS (username)
bob
jim

FAVORITES (username - movie_title)
bob - movie 1
kim - movie 3
jim - movie 1
larry - movie 2
jane - movie 2

How would I write a query that lists the most popular movies of special users without explicitly doing:

SELECT * FROM FAVORITES WHERE username = 'bob' or username = 'jim' GROUP BY movie_title

I want something like this:

SELECT * FROM FAVORITES WHERE username = [all the usernames from the SPECIAL USERS DB] GROUP BY movie_title

View Replies !
Mysql Pull
I got this in my mysql databe table.
a:1:{i:0;O:19:"test_Enclosure":4:{s:4:"link";s:36:"http://grabber/v/CAcpLiw4qt4.swf";s:4:"type";s:29:"application/x-shockwave-flash";s:6:"length";N;s:10:"javascript";s:2:"js";}}

I want to pull out only the
http://grabber/v/CAcpLiw4qt4.swf part?

View Replies !
Unicode And Japanese Support
I am using cold fusion to make a small custom website using
mysql to store the information a user inputs. I want it to
be able to save japanese and unicode text, but whenever I
enter any it comes back as garbage. Is there anything
special I need to do to configure mysql to use unicode

View Replies !
Entering Japanese Characters
Edit: Inserting it into the database manually works, so its entirely possible this is just a problem with php reading it and inserting it wrong. I'm just going to post this in the php section,

View Replies !
Sorting Chinese, Japanese
I have been asked to look into support for sorting non-latin 'alphabets' such as Chinese and Japanese. I already know that MySQL supports UTF-8, though my interest is in finding out how well MySQL support sorting of entries for these writing systems and what supplementary configuration I may need to do.

View Replies !
MySQL Japanese Characters
I use a MySQL Database where I store Japanese characters in SJIS. I tested if they are in SJIS and they are.

I am using mysql 4.1.3b-beta, mysql-connector-java-3.0.14, JBuilderX (jdk 1.4.2), and OS XP.

I change the default encoding latin1 to sjis when I start MySQL. I use
mysqld-opt --default-character-set=sjis
mysql --default-character-set=sjis.

After starting mysql with the sjis character set I used:
create database japanese;
use japanese;
create table jp (jp1 varchar(100));

I use a file with sjis characters as input. And to see if the output is in sjis I write the values to an output file. The values I get are in sjis.

(I can't set the character set of the table to sjis. When I do that I only get garbage into the database and in the output file, maybe that's becuase I already changed the default character set at start-up?).

So I have no problem with inputting a file that contains sjis characters and I can also output data to a file in sjis when using only MySQL, but I can't do it with Java.

When I try to retrieve the data I only get a square, then a some character, then a square, then another character,... but not the actual kanji/kana. I have some latin characters in the same column as the kanji/kana and they are displayed correctly. I already tried only using kanji/kana in a column but it didn't work either.

I can display Japanese characters correctly in Java when I retrieve them from a file, so I don't think it's a problem with the font. I also tried outputting the data I retrieve through Java to a file but there I get the same symbols as in my JTable.

Have I done something wrong with creating the Database?
Is there something I need to consider when using the MySQL Connector?

On a side note as I am new to MySql after installing version mysql4.1.3b. I no longer have the mysqld.exe but only mysqld-opt.exe. So I am using this instead. But I don't think that can be responsible for my problem.

View Replies !
Importing Japanese Characterset
I`m trying to get a mixed excel spreadsheet (English and Japanese) into mySQL. I thought phpMyAdmin could do it, but it can only export into an excel file.

The issue I have is, there is something weird about the csv file format in that it makes all my Japanese text become garbage. So I`m thinking I need a way to import directly from the xls format.

Does anyone have any experience inputting asian languages/charactersets into mySQL? I would prefer to use OSS or free software (it is a project for education = limited funds).

View Replies !
Populate A Pull Down Menu From Db
how do I populate a pull down menu from a MySQL table?
Using PHP/MySQL 4.0

Have table1 with names and ID and tableb with ID and statistical info.wnt to be able to scroll names and have users able to click on the name to follow a link to a page created using tableb data for each name listed.


Table examples:
tablea
ID l Name
---------------------
1 Person, Joe
2 Smith, Joe


tableb
ID l units l margin
--------------------------------
1 5023 123
2 2536 72

View Replies !
Code To Pull Amount
I'm certain there is a function to do this but I forget what it is...
Say I am pulling values from the database, but I only want to pull like the first 10 chars of the value.. how do I do that?

View Replies !
Pull Hosting Plans
I am currently creating a web hosting website for a client of mine, for the packages and the order process we are using a script called "Auto-Host (http://www.idevspot.com/AutoHost.php)", which stores all the hosting plans into a mysql database.

This is a great script and it does exactly what we want it too, the only thing missing is it doesnt create a page where people can view the hosting plans and click a sign-up button. Can someone please give me guidance on how i can get a page with all the hosting plans on please?, alternatively i am willing to pay somebody for doing this on my behalf

View Replies !
Save Both Japanese And English Characters
I will try to explain you what is my trouble:

I am not be able to write in my database using asian characters:
1) &#12513;&#12483;&#12475;&#12540;&#12472;
2) &#51228;&#50808;&#54616;&#44256;
3) &#1072;&#1085;&#1080;&#1090;&#1100; &#1087;&#1072;&#1088;&#1086;&#1083;&#1100;
4) etc.. .. ..

I have a trouble using in my database asian characters.


When I copy and past them on my forum, I see that:
1) 分対
2) じませ
3) にフォー


I think that I have to set up my mysql in a different way.

I would like to know that:

How I have to do for saving both european characters and asian characters?
What version of mysql I have to use?
What are the character_set and the collation that I have to use ?

View Replies !
Storing Japanese Text In MySQL
I am developing a site for a Japanese jewerly business in PHP and I'm having a problem with getting the japanese text to store correctly in MySQL. I've been working on this problem for three days now and after an exhaustive internet search and countless coding/database collation changes, I'm still stumped. I've seen a number of forums suggesting the use of SET NAMES 'utf8' or SET CHARACTER SET 'utf8',

I've tried these and more with no success. Does anyone have any suggestions? One other thing I noticed - when I type japanese text directly into the database table field, the text gets converted to these: &#27700; - which looks odd but displays as the original japanese text when querried from the database and displayed in a web page. Is there a way I could convert my text to this format before inserting it?

View Replies !
Japanese Text Dump To Table
I'm trying to upload the content of a TXT file in Japanese (JSHIFT) into a table with the command LOAD DATA INFILE, but everytime I've tried, I receive a warning that the text is being cropped and then it doesn't display properly on my webpage (although it's encoding is properly set with :

<meta content="text/html; charset=Shift_JIS" http-equiv="content-type"/>).

I'm tired of trying, so I decided to ask in case anyone has experience with text in other encoding formats.

View Replies !
Pull The Last 10 Records From A Transactions From A Table
I'm trying to pull the last 10 records from a transactions from a table using this query:

SELECT * FROM transactions ORDER BY timestamp DESC LIMIT 10

But I want to display the rows in ascending order by timestamp. I can't get the subquery below to work and not sure why:

SELECT *
FROM (SELECT *
FROM transactions
ORDER BY timestamp DESC
LIMIT 10)
ORDER BY timestamp ASC;

View Replies !
Pull Related Info Using Subqueries
I'm creating a tool to browse a database of movie listings. The browser
pulls up 25 results at a time, and you can page through them using 'Next'
and 'Prev' tools. Pretty basic stuff.

Here are my tables:
movies
directors
comments
movies_directors
movies_comments
etc...
(primary key is movies.id)

But here's where I'm stuck: for each film, I need to pull the movie info in
'movies', plus any related data from other tables, like this:

The Lord of the Rings | Peter Jackson | 3 comments
Episode II | George Lucas | 0 comments
Indiana Jones | Steven Spielberg | 15 comments

I seem to run into problems when I try to join info from all of these
related tables. If there's a match, great. But, if not (like a movie with no
comments), the movie is excluded from the result set.

I've tried all sorts of SQL queries to make this work, but nothing seems to
do the trick.

SO, HERE'S MY QUESTION, IS THERE ANY WAY TO DO THIS QUERY WITHOUT
SUBQUERIES/MYSQL 4.0? Or would the best approach be to use PHP to do all the
subquery lookups?

View Replies !
Pull Similar Data From Two Tables
I need a query to search two seperate tables for similar data and return them in one result.

I know you can do multiple select statements in one query but I dont know how to exactly organize them into one result. Does anyone know how to accomplish this.

View Replies !
Result Pull And Rating Sort
I have two databases. What I would like to happen is when I have a summary of products, I would like the query to pull the info from the product table and based on the id from that table cross reference with the reviews for that particular product and calculates all the reviews for that product into a single percentage. So when I access the assoc array from PHP I would like to see : Array(Array(['id'] => '2', ['prod_name'] => 'gummy bears', ['rating'] => '72'), Array(['id'] => '57', ['prod_name'] => 'socks', ['rating'] => '52')).

View Replies !
How To Pull Data From Multiple Tables
I have a db, with several tables in it, I have now reached to the point where I need to pull data from several tables. What is the best way to do this?

Should I put a column in each table, and then insert a unique key in all of them at the time the record(row) is being created? If this is the way to do it, when I am putting the unique key in each table would I just do an insert in each of the tables?

View Replies !
Pull Data From Multiple Tables
Can you pull data from 2 tables in the same database onto the same page? What about more than 2 tables?

Here is my dilema: I currently have a database with 1 table, and a ton of rows. The information is property information, and each property has multiple empty suites. As of now, I have columns for Building Name, Address, and then columns for Unit Type A (for the first unit), Rent A, Type B, Rent B, etc....

I was wondering if I would be able to put the listings we have into thier own property table, and then one bigger table of all the properties individual information. Keep in mind I need to call all tables together on my portfolio pages, so I would be connecting to quite a few tables at once.

Or my other option I was thinking about was to just have 2 tables: 1 Buildings info, and 1 units info.

Which of these would you do, or how would you organize this data.

View Replies !
How I Can Save Both Japanese And English Characters, In My Text Box?
I will try to explain you what is my trouble:

I am not be able to write in my database using asian characters:
1) &#12513;&#12483;&#12475;&#12540;&#12472;
2) &#51228;&#50808;&#54616;&#44256;
3) &#1072;&#1085;&#1080;&#1090;&#1100; &#1087;&#1072;&#1088;&#1086;&#1083;&#1100;
4) etc.. .. ..

I have a trouble using in my database asian characters.


When I copy and past them on my forum, I see that:
1) 分対
2) じませ
3) にフォー

I think that I have to set up my mysql in a different way. I would like to know that:

How I have to do for saving both european characters and asian characters? What version of mysql I have to use? What are the character_set and the collation that I have to use ?

View Replies !
Storing English/Japanese/Russian Characters
what is the best collation to be used for a field that will hold characters from various languages. It could be a set of characters from any of the following languages and different rows could hold different languages:

* English
* Japanese
* Russian
* Spanish
* Portugese
* German

View Replies !
Importing Japanese Characters From Text File
I have a tab-delimited text file I'm trying to import with Navicat Import Wizard. The first field of each line is in Japanese (SJIS format). Even though I've tried setting up the fields with Design Table for the field of the new database to be coded for SJIS (and every permutation I can think of), I only get question marks in the generated table.

View Replies !
Japanese Characters In MySQL 4.0 - Character Sets?
How do I insert Japanese and other foreign characters into a MySQL 4.0 table? (4.0.27 to be specific) In other words, how do I specify a UTF-8 set for a database or table or column. MySQL 4.0 doesn't seem to support character set definitions the same way that 4.1 does, and I'm having trouble locating how to do it in 4.0.

Right now if I insert Japanese characters they show up as character codes like '& #25658; & #24111;' (without the spaces) in the table. While this displays properly if used to make content on a page, I'm not sure if a search engine will pick it up right.

View Replies !
Regular Expression :: Pull 3 Or 4 Digit Numbers
I would like to pull all the model number from my products table that are strictly only a 3 or 4 digit number ie:

034 or 3542 or 0243 or 934 etc

Can someone advise me on how to construct a regular expression to give me the data I need?I have tried the following but it wasnt 100% accurate:

Code:

products_model REGEXP "[[:<:]][0-9][0-9][0-9][0-9][[:>:]]" or products_model REGEXP "[[:<:]][0-9][0-9][0-9][[:>:]]"

View Replies !
Pull Data From Ibdata And Ib_logfile Files
I lost the data in a scheme and the only logs I have are the ibdata and ib_logfile files. Is there anyway to parse the data from these files to rebuild my data set?

View Replies !
Database Cannot Recognize Chinese / Korean/ Japanese Characters
For some reason, my database can't recognize information submitted in Chinese characters (or any other Asian characters for that matter).

I've created a test two variable database for id and name, and I've been told that the "UTF-8 Unicode" recognizes all characters, which doesn't seem to be working. My MySQL recognizes this character set. I inputted the following SQL query:

create table test(
id int(8 ) collate utf8_ci_as null,
name varchar(15) collate utf8_ci_as null
)

Am I doing anything wrong? It doesn't support GBK or other character sets.

View Replies !
Pull Info From One Database To Save In A Session To Push To A Different DB
I'm building a dynamic site that has 3 data bases. One DB contains all
of my store info ID#, Name, Address, Phone. Another DB contains member
info ID, Name, address, email,phone,etc...
The 3rd DB Tracks when a user logs in and logs out at a store. This DB
has the following columns Store ID, Member ID, log in time,log out
time, time in store.

The stores log in in the morning that starts a session-I need the
session to pull the store's info ID#, Name,etc... so when a user logs
in, in the store. The login page inserts the store ID, Store name, and
user ID into the 3rd DB.

There are a lot of stores how do I get the store variables to be
inserted into the DB?

View Replies !
Pull Data From 2 Database Tables Into 1 Table On My Site.
I got 2 tables: a dev_tasks and a task_history table. The task table has to record information about the task I am working on AND the history table is for the task history logs. I am trying to display info from both tables into 1 table on my site.

Most of the info will come from the dev_tasks table BUT i want to dedicate on column of the displayed info for the latest log made to the task_history table.

The common column to both tables is the 'taskid' column.

What would the query look like to pull the info from both tables, knowing that the taskid is common to both and that I want to display the last log per tasks from the task_history table?

View Replies !
Trying To Pull Id, Count And Title But Lose Rows When I Add Extra Join
i'm trying to extract some information from my database, the query being

PHP

SELECT grps_c.catid, grps_c.title, COUNT(grps.groupid) AS COUNT
FROM grps
RIGHT JOIN grps_category grps_c ON (grps_c.catid = grps.catid)
GROUP BY grps_c.catid
ORDER BY grps_c.title

which works fine. however some of the groups (grps.groupid) are hidden and i don't want to count them, so my thinking was add

PHP

LEFT JOIN grps_setting grps_s ON (grps_s.groupid = grps.groupid AND grps_s.hidden_group != &#391;')

however adding that removes the rows that have a 'count' or NULL or Zero.

View Replies !
Unicode Case Insensitive Query (sjis Japanese Alphanumeric Character) ?
I want to do the case insensitive SELECT query for sjis unicode data.

when i tried, case insensitive query is ok for ascii data, but it is not ok for sjis full width alphanumeric characters.

View Replies !
MySQL LOad Data Infile Problem With Japanese Characters In Linux
I am trying to import a data file wich has japanese characters (sjis encoding). I am having problem loading the datafile into database using LOAD command in linux. The same command works on Windows though (Reagion set to Japan, Language Japanese without using any of the settings.

I have created the database using character set set to sjis. Table type is InnoDB and char set is sjis.

My MySQL server version is 5.0.16 on RedHat EL 3.0 AS (English and Japanese language support). I have set the following sys variables;

View Replies !
Creat Mysql In Unix And Pull/post Data From A WindowsXP Machine With A UserDSN?
Can I creat mysql in Unix and pull/post data from a windowsXP machine with a UserDSN?

Is there an Administrative Tool (User DSN) that I can utilize to pull/post data to a Unix account without having to through the long process of "FTP" and "XTerm windows" ?

View Replies !
No Input To Db
I am using a db that has not been modified that takes a vote input from a web page and then returns the results of the poll. I have put a sample test set of data in the db and this is returned when the results are returned but it will not take input from the web page.

If I input incorrect data it does the right thing by returning an error. The input is taken from a standard web form and proccessed using a php results page.

View Replies !
Cannot Input #
ask about data with '#'...

every time i insert data with #...from php...
mysql clear all data after # in one row...

what's happen?
is it because of the type?
iformation : i use varchar type....should i change it?

View Replies !
Input Date
I have a date in mm/dd/yyyy format in a text file. I am using a perl
script to update data into the tables. How can I upload the date in
mm/dd/yyyy format into the MySQL native yyyy-mm-dd format without
using any substring functions?

View Replies !
Validate Input
I wrote a website (for a coursework) where users are able to leave their comments and these comments are stored in the database. I need to check therefore for invalid input characters such as backslashes, quotes etc. My question is what are all characters that can make my application crash or even worse can delete data from the db? And also, is the validation usually done on the client or server?

View Replies !
Data Input
Is the only way to input data to our database in MySql is using DOS, and typing the data in DOS environment?

View Replies !
Setting Input
I'm using Navicat to develop MySQL database. I have a table cutomer table that will be connected to Jsp page to collect data from the user online. I was wondering how do I set an input mask to the email address:
such as: abc@yahoo.co.uk into xxxxxx@yyyyyy.zzzzzz
So this means that the user must enter their email address in that format otherwise it should return a message saying INVALID.
Also another question was: Im trying to set my price field in such a way that it accepts values like 2.50
but i tried using Double, real, numeric, float but it does not allow the zero at the end.

View Replies !
Input File
How do I run multiple sql statements that I have on a file at the mysql prompt, and output the results to just one text file?

View Replies !
Input Parameter
I have created a version history table containing a column with the name of the person who is installing the release. How do I get the MySQL script to ask for this information and use the information in the INSERT statement?

View Replies !
Search Via Input
I am trying to search records I have in a database by specifying the data myself and it is not working for me.

Currently I am using this:
<?php
$con = mysql_connect("localhost","user","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("music", $con);

$result = mysql_query("SELECT * FROM music
WHERE Artist= ''". $_GET['Artist']);

while($row = mysql_fetch_array($result))
{
echo $row['Artist'] . " " . $row['Song'];
echo "<br />";
}

?>

What I'm trying to do is enter in an Artists name and return ALL data regarding the Artist.

View Replies !

Copyright 2005-08 www.BigResource.com, All rights reserved