Arabic comments in code block don't work in Opera

Hey guys :waving_hand:

As the title suggests, when I write Arabic words in code comments, they are not displayed correctly in the Opera browser after I post the topic.

However, it works fine in preview mode and in other browsers, for example:

# This is a basic workflow to help you get started with Actions

name: CI Name  # Here we put the workflow name

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: # We use it to set the timing for starting the workflow
  push: # Here the workflow starts when code is pushed to the main master branch
    branches: [ master ]
  pull_request: # And here the workflow starts when a pull request is made
    branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: # Each workflow consists of several jobs
  # This workflow contains a single job called "build"
  build-for-production: # Here we give any name that describes the job the server will perform
    # The type of runner that the job will run on
    runs-on: ubuntu-latest  # Server operating system, and here there are many options attached to the image below the code

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps: # Here are the steps or tasks the server will perform
    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
    - uses: actions/checkout@v2  # This step is important as it directs the server to the current folder or project

    # Runs a single command using the runners shell
    - name: Run a one-line script  # Name of the first task
      run: echo Hello, world! # The command for the first task

    # Runs a set of commands using the runners shell
    - name: Run a multi-line script  # Name of the second task
      run: |
        echo Add other actions to build,    # Commands for the second task
        echo test, and deploy your project.

This is an example from our instance.

I tried updating Discourse from 2.5.0.beta5 to 2.5.0.beta7, but the problem persists.

Edit: I don’t know why it works on your site :man_shrugging:
but this is the original topic where we noticed this bug: https://forums.coretabs.net/t/ما-معنى-devops؟-دليلك-التطبيقي-لميكنة-مشروعاتك/4917

2 Likes

Hey @AHMED_ALRIFAI welcome to Meta :wave:

Discourse does not support Opera. The browsers we support are listed here.

The code block in your post seems to render OK for me on Chrome.

Also, the code blocks in your linked topic seem to render OK for me on Chrome as well.

If the issue persists on any of the browsers we support, we’d be happy to look into into it :+1:

6 Likes

Yeah it did work in other browsers for me too, but the issue just in opera.
but this is wierd i am using opera now and it works in your website without any problems.

btw sorry for my english.

2 Likes

If it works for you here on Meta but it’s not working on your site, then it might be a font issue. However, like I said we don’t support Opera.

The best thing I can recommend is to try safe-mode on your site

your.site.com/safe-mode

and see if the issue persists. If the issue does not occur in safe mode, then you might need to check your theme / css / font since it might be causing the problem on Opera.

4 Likes

Ok. i will check it now, thanks

3 Likes

This issue is related to the Arabic font and we’ve solved it by changing the font-style to normal, if anyone would like to keep the comments italic just change the typeface.

4 Likes