26056

Cyrillic symbols in Eclipse

I am writing a Java program with a GUI that will have Cyrillic text in some labels. When I create label JLabel lbl = new JLabel("Име на обект"); everything is fine and when my program starts it is also properly displayed. But I changed the PC I was working on and copied my project to my home PC. On that system, all Cyrillic text in my code now looks like JLabel lbl = new JLabel("РћС‚ Дата:*"); and is displayed in the same way when the program runs. How can I make Eclipse show my Cyrillic text normal again?

Answer1:

i have the same issue :)

Delete the file. Copy the same file again. Don't open the file. Right Click on the file --> Properties. Resource --> Text file encoding --> check "Other" with UTF-8. Open the file.

Recommend

  • find a control by id from Dynamically added Template field in GridView
  • Tcl/Tk: How to scale the widgets when the user changes the size of the window
  • UpdatePanel.Update() method doesn't update the contents of the UpdatePanel control?
  • What function to use in getting all textbox names in form using C#?
  • How to make local USB port to work with Azure virtual machine
  • InputDispatcher Error
  • Background image does not show on iPhone/iPad
  • css background images not always displayed
  • Why is django manage.py syncdb failing to create new columns on my development server?
  • Lua: Line breaks in strings
  • You tube videos are not playing
  • ImportError: cannot import name Pubnub
  • Does Apportable support to build library binary (.a/.so)?
  • Is there a way to save the selected text and highlight it again once the page is refreshed?
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • AJAX Html Editor Extender upload image appearing blank
  • D3 nodes and links from JSON with nested arrays of children
  • Switching to Release Build causes runtime error in Web Reference
  • Python CGI os.system causing malformed header
  • Spring Data JPA custom method causing PropertyReferenceException
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • Sony Xperia Z Tablet not found by adb
  • How to recover from a Spring Social ExpiredAuthorizationException
  • Excel - Autoshape get it's name from cell (value)
  • Window Size for Mac application
  • Running a C# exe file
  • How to apply VCL Styles to DLL-based forms in Inno Setup?
  • Arrow is showed instead of the material design version hamburger icon. Why doesn't syncState in
  • How can I estimate amount of memory left with calling System.gc()?
  • Jquery - Jquery Wysiwyg return html as a string
  • QuartzCore.framework for Mono Develop
  • Confusion with PayPal's monthly billing cycle
  • How to format a variable of double type
  • Matrix multiplication with MKL
  • Free memory of cv::Mat loaded using FileStorage API
  • Hits per day in Google Big Query
  • Memory offsets in inline assembly
  • File not found error Google Drive API
  • Converting MP3 duration time