I am trying to generate reports in different languages like French, Spanish, etc. The report is being viewed using MS Excel 2007, It displays OK in English but not in French nor in Spanish when executed in Linux environment.  All languages works in Windows Server but when running it in Linux, I am experiencing the problem I described above.  The code is in Java and, I started like this:    String contentType = "text/csv; charset=utf-8";   // resp is HttpServletResponse   resp.setCharacterEncoding("utf-8");   resp.setHeader("Cache-Control", "max-age=0,must-revalidate");   resp.setHeader("Pragma", "cache");   resp.setDateHeader("Last-Modified", System.currentTimeMillis());   resp.setHeader("Content-disposition", "attachment; filename=\"Report.csv\"");   resp.setContentType(contentType);   OutputStream os = resp.getOutputStream();    os.write(new byte[] { (byte)0xEF, (byte)0xBB, (byte)0xBF });    //os.print("\uFEFF".getBytes()); &lt;&lt;- tried this too, did not worked!    //where sb is StringBuffer sb = new StringBuffer();   //and string values were added by sb.append("\"" + someString + "\",");    os.write(sb.toString().getBytes());   Please help and thank you in advance.
35988
I am programmatically exporting data (using PHP 5.2) into a .csv test file. Example data:   Numéro 1 (note the accented e). The data is utf-8 (no prepended BOM).  When I open this file in MS Excel is displays as NumÃ©ro 1.  I am able to open this in a text editor (UltraEdit) which displays it correctly.  UE reports the character is decimal 233.  How can I export text data in a .csv file so that MS Excel will correctly render it, preferably without forcing the use of the import wizard, or non-default wizard settings?
104321
The international Stack Overflow sites in Spanish, Portuguese, Russian, and Japanese seem to have a bug in their quick site descriptions (under their titles), for they all start with the word  For...  in English, instead of their respective languages As an example, the Spanish Stack Overflow site description is:  For programadores y profesionales de la informática  Obviously, this isn't something too big of a deal, but since they offer those sites in their respective languages, it would be nice if this issue were fixed. You can see this under &quot;More communities&quot; in the top bar.    You can also see this on the  page, where the descriptions begin with  Q&amp;A for...
40769
I have just done a clean install of SQL Server 2017 (CU15) on two of my servers, and have noticed that the displayed language for all my logins shows ARABIC instead of '' or 'English'.  Here is the server settings    Here is a login setting    When I run the following SQL code, I get 'us_english' for the default_language_name:  SELECT type_desc,         default_database_name,         default_language_name, FROM master.sys.server_principals WHERE name = 'Cerberus'  | type_desc        | default_database_name    | default_language_name | +------------------+--------------------------+-----------------------+ | WINDOWS_LOGIN    | master                   | us_english            |   Did I mess something up on installation?  How do I correct this?
931
We have a project in Team Foundation Server (TFS) that has a non-English character (š) in it. When trying to script a few build-related things we've stumbled upon a problem - we can't pass the š letter to the command-line tools. The command prompt or what not else messes it up, and the tf.exe utility can't find the specified project.  I've tried different formats for the .bat file (ANSI, UTF-8 with and without ) as well as scripting it in JavaScript (which is Unicode inherently) - but no luck. How do I execute a program and pass it a Unicode command line?
68773
At System → Administration → Language support →  Text. I can only choose standard locales, but I would like to fine-tune. For example in Windows I could customise things like time and date format, measure units, decimal separator, currency, etc manually - how can I do this in Ubuntu?
34382
My neighbor just bought a Windows 7 laptop. He's from Mexico originally, and he wants to switch it over to use Spanish. Before I even helped him, he was able to switch it over to use a Spanish keyboard, date time format, etc. Internet&nbsp;Explorer defaults to the Spanish version of Google and Bing so it recognizes the system locale as Mexico.  What doesn't happen is the display language change to Spanish. All the menus are English, Start Menu entries are English, and all messages are English.  From what I can tell you have to have Windows 7 Ultimate or Enterprise to use a true multi-lingual interface. It would appear that those versions allow you to download new language packs through Windows Update. Unfortunately he has Windows 7 Home Premium on the laptop.  I saw some references to downloading a LIP(?) (language interface pack) in the Windows&nbsp;7 help. I followed the links to Microsoft's language site, and it only listed downloads for Windows&nbsp;XP Tablet Edition.  From what I read Windows&nbsp;7 works similarly to the way Windows Vista does, but I've never tried changing the display language on Windows Vista either.  Where can I legally get a Spanish language download for Windows&nbsp;7? I found places where I could download a pirated copy of the full MUI for Windows 7, but I'm not willing to go that route.  Is my neighbor just out of luck? Does he need to buy a laptop in Mexico in order to get one he can use?
25332
I tried uploading non-English text to my Data Extensions but the system is throwing error named &quot;Invalid Field Count&quot;.
57095
We have a text file which is in default ANSI format and that needs to be converted into UTF-8 format. Is there any way we can use the general windows DOS commands to convert the file? We can use the PowerShell but only this command line has to be run from a different batch process.
82551
I use xterm (X-Win32 2012 Build 30 from StarNet Communications Corp) to login from a Windows 7 PC to a Red Enterprise Linux 6 (RHEL6).  My problem is that all multi-byte utf-8 characters comes out garbled in the xterm login shell. For example, here's how the string "Wilhelm Röntgen" is rendered in the two shell instances (the font used is a Unicode font and is the same font in both shell instances):   Login shell: Wilhelm RÃ¶ntgen  Second shell: Wilhelm Röntgen   If I've understood things correctly the software from rom StarNet Communications Corp implements (or emulates) a X terminal (a thin client that runs a X server).  I.e. both shell instances runs in a X terminal window on the PC, and communicates with RHEL6 using the X11 protocol.  Below is how both shells appear on my desktop, catenating a file with unicode multibye characters to the terminal.    Here is the command I've configured  X-Win32 to use to start the login shell:  xterm -u8 -ls   However, after I login, I can do xterm in the login shell, and that command that will fork a new xterm instance where locale setting works as expected (i.e. utf-8 characters are rendered correctly).  Here is the relevant settings as they appear in the login shell:  $ locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE=C LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=  $ printenv XTERM_LOCALE en_US.UTF-8   I also have the following two lines in .Xresources:  xterm*locale: true xterm*utf8: 1   It looks like the login shell xterm doesn't recognise the locale I've set, but I don't understand why not.  My xterm is clearly capable of this, since all non-login shells do this by default.
22676
I am typesetting something that has a lot of Java code listings. Because the Java code has a lot of annotations, and that they are important to the reader, I'd like to have them highlighted, like other keywords such as class, public, etc.  I want the output to be in black and white.  I tried using minted, but the bw output does not highlight the annotations.  How can I arm-twist listings to highlight the annotations?  P.S. Here is the lstset that I am using:  \lstset{   basicstyle=\footnotesize\tt,        % the size of the fonts that are used for the code   breakatwhitespace=false,         % sets if automatic breaks should only happen at whitespace   breaklines=true,                 % sets automatic line breaking   captionpos=b,                    % sets the caption-position to bottom   extendedchars=true,              % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8   frame=single,                    % adds a frame around the code   language=Java,                 % the language of the code   keywordstyle=\bf,   showspaces=false,                % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'   showstringspaces=false,          % underline spaces within strings only   showtabs=false,                  % show tabs within strings adding particular underscores   tabsize=2                       % sets default tabsize to 2 spaces }
28362
I want to have my sections in independent .txt files in the folder of my assignment. So I use \input{text.txt}. The problem is, I write in Danish and we have the 'æ' 'ø' 'å' characters that aren't normally recognized by LaTeX. I fixed it within the master .tex file, so when I write the letters, it shows up nicely in my document. It does not however show up nicely, if I put one of the characters in the file name or within the .txt files. Now, I don't mind that I have to avoid them in file names, but I really need them to be recognized within the file.  \documentclass[10pt,a4paper]{article} \usepackage[danish]{babel} \renewcommand{\danishhyphenmins}{22} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage[danish=quotes]{csquotes}  \begin{document} æ ø å \input{text.txt} \end{document}   I can't upload the .txt file, but if you copy the three letters, put it in a document called text.txt file and put it in the folder, you'll see what I mean.  If I delete \input{text.txt} from the document, or avoid using those three letters in the input file, everything works perfectly and it writes 'æ ø å' in the output file.  I asked this question on another forum, but they weren't much help. They talked about it being the wrong encoding and told me, that if I saved it as .tex files there would be a dialogue that would enable me to change the encoding of the input document so it would be compatible, however there is no such thing in the 'Save as' dialogues I get from TeXworks. I also have it set to utf8 in my preferences in TeXworks, however that doesn't seem to influence much of anything.
65694
I've got a FileUpload control in an ASP.NET web page which is used to upload a file, the contents of which (in a stream) are processed in the C# code behind and output on the page later, using HtmlEncode.   But, some of this output is becoming mangled, specifically the symbol '£' is output as the Unicode FFFD REPLACEMENT CHARACTER. I've tracked this down to the input file, which is Windows 1252 ('ANSI') encoded.   The question is,   How do I determine whether the file is encoded as 1252 or UTF8? It could be either, and How do I convert it to UTF8 if it is in Windows 1252, preserving the symbol £ etc?   I've looked online but cannot find a satisfactory answer.
83249
Very similar to , except for Java.  What is the recommended way of encoding strings for an XML output in Java. The strings might contain characters like "&amp;", "&lt;", etc.
337
I'm trying to include Japanese and English text in the bibliography of LaTeX document while also using the package gb4eand no matter what Japanese text I input it comes out in the pdf as "0123456789abcdef0123456789abcdef0123456789abcdef01234". I'm using CJKutf8 with pdflatex (texlive2014) and have     wadalab and CJK and the necessary fonts installed. I would use XeLaTeX but I would have to change too much of the earlier code to make it work properly. Any suggestions of why it is not working properly and why gb4e causes these problems? I need to keep the gb4e package for linguistic inter-linear glossing in the document.  Here is my sample code:  %!TeX encoding = UTF-8 %!TeX program = pdflatex \documentclass{article} \usepackage{CJKutf8} \usepackage[TS3,T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{gb4e}  \begin{document}  \begin{exe} \ex Make sure that ^{super}_{sub}scripts in \texttt{gb4e} work fine. \end{exe}  \begin{thebibliography}{99} \bibitem{1} Inui, Hideyuki. 2005.   \begin{CJK}{UTF8}{min} バスケト語の文法概観 \end{CJK}   [A grammatical survey of the Basketo language]. \emph{Cushitic-Omotic Studies} 2004, 1--40. \end{thebibliography} \end{document}   Here is a brief selection of the error text:  ! Use of ^ doesn't match its definition. &lt;argument&gt; ^^c               0 l.16 ...ui, Hideyuki. 2005. \begin{CJK}{UTF8}{min}                                                    バスケト語の文法�...  ?
4805
I'm developing a PHP application and I'm wondering about the best way to include multi-language support for users in other countries.  I'm proficient with PHP but have never developed anything with support for other languages.  I was thinking of putting the language into a PHP file with constants, example:  en.php could contain:  define('HZ_DB_CONN_ERR', 'There was an error connecting to the database.');   and fr.php could contain:  define('HZ_DB_CONN_ERR', 'whatever the french is for the above...');   I could then call a function and automatically have the correct language passed in.  hz_die('HZ_DB_CONN_ERR', $this);   Is this a good way of going about it?  -- morristhebear.
64202
I am using my windows with Turkish language as first choice. Non-Unicode programs also use Turkish language.  My particular program, Visual Studio 2005 (Business Intelligence Studio 2005) is behaving strangely with this language setting. It has no problems with English Language settings.   I would like to start only this program with English Language Settings.   I can use new bat/cmd file. Modify shortcut etc. Every solution is welcome. Only I do not want to change entire windows settings.  I am using Windows 7.
68712
I am working on a text written in Italian and Chinese and I need to extract only Chinese characters using AWK. How can I do this?  I tried:  [The range of Chinese Unicode chars is 4E00 thru 9FFF (344 270 200 thru 351 277 277) so the test should be &gt;"\343" and &lt;"\352" (to avoid picking up any 4 char UTF-8 codes)]:  { f=0; for ( i=1; i&lt;=length; i++) if(substr($0, i, 1)&gt;"\343" &amp;&amp;substr($0, i, 1)&lt;"\352") f = 1   print $f }   But there is an error or more errors. I can't find it / them